NetSight
medium6.5

CVE-2024-8037

Vulnerable juju hook tool abstract UNIX domain socket

Impact

### Impact When combined with an attack of `JUJU_CONTEXT_ID`, any user on the local system with access to the default network namespace may connect to the `@/var/lib/juju/agents/unit-xxxx-yyyy/agent.socket` and perform actions that are normally reserved to a juju charm. ### Patches Patch: https://github.com/juju/juju/commit/2f2ec128ef5a8ca81fc86ae79cfcdbab0007c206 Patched in: - 3.5.4 - 3.4.6 - 3.3.7 - 3.1.10 - 2.9.51 ### Workarounds No workarounds available. ### References [GHSA-mh98-763h-m9v4](https://github.com/juju/juju/security/advisories/GHSA-mh98-763h-m9v4) https://github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/uniter/paths.go#L222

Affected packages

EcosystemPackageAffectedFixed in
gogithub.com/juju/juju< 0.0.0-20240820065804-2f2ec128ef5a0.0.0-20240820065804-2f2ec128ef5a

Affected products

VendorProductAffected versions
CanonicalJuju
before 2.9.51
from 3.1.0 before 3.1.10
from 3.2.0 through 3.2.4
from 3.3.0 before 3.3.7
from 3.4 before 3.4.6
from 3.5.0 before 3.5.4

Weakness classification

References