Incorrect default permissions in Canonical Juju
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-284.
Summary
Vulnerable juju hook tool abstract UNIX domain socket. 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Canonical | Juju | 3.5 to before 3.5.4; 3.4 to before 3.4.6; 3.3 to before 3.3.7; 3.1 to before 3.1.10; 2.9 to before 2.9.51 | 3.5.4, 3.4.6, 3.3.7, 3.1.10, 2.9.51 | Patch available | CNA |
| — | github.com/juju/juju (Go) | before 0.0.0-20240820065804-2f2ec128ef5a | 0.0.0-20240820065804-2f2ec128ef5a | Patch available | GHSA-8v4w-f4r9-7h6x |
- Juju VendorCanonical Affected 3.5 to before 3.5.4; 3.4 to before 3.4.6; 3.3 to before 3.3.7; 3.1 to before 3.1.10; 2.9 to before 2.9.51 Fixed in 3.5.4, 3.4.6, 3.3.7, 3.1.10, 2.9.51 Patch available CNA
- github.com/juju/juju (Go) Vendor— Affected before 0.0.0-20240820065804-2f2ec128ef5a Fixed in 0.0.0-20240820065804-2f2ec128ef5a Patch available GHSA-8v4w-f4r9-7h6x
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:* | before 2.9.51; 3.1.0 to before 3.1.10; 3.2.0 – 3.2.4; 3.3.0 to before 3.3.7; 3.4 to before 3.4.6; 3.5.0 to before 3.5.4 | Vulnerable | Canonical |
- cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:* Versions before 2.9.51; 3.1.0 to before 3.1.10; 3.2.0 – 3.2.4; 3.3.0 to before 3.3.7; 3.4 to before 3.4.6; 3.5.0 to before 3.5.4 Vulnerable ·Canonical
Remediation
- Fix · CNA Juju (Canonical Ltd.) Fixed in 3.5.4, 3.4.6, 3.3.7, 3.1.10, 2.9.51
- Fix · GHSA-8v4w-f4r9-7h6x github.com/juju/juju (Go) Fixed in 0.0.0-20240820065804-2f2ec128ef5a Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Canonical Juju 2.9.51, 3.1.10 and 3 more versions
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2024-07005 JUJU_CONTEXT_ID is a predictable authentication secret.Priority LOW 38
- TI-2024-07452 Vulnerable juju introspection abstract UNIX domain socket.Priority LOW 34
Timeline
- 2026-10-02 Threatist record created from CVE-2024-8037
- 2026-10-03 Alias added: GHSA-8v4w-f4r9-7h6x
References
Advisory 2
Other 5
- https://github.com/juju/juju/security/advisories/GHSA-mh98-763h-m9v4
- https://github.com/juju/juju/commit/2f2ec128ef5a8ca81fc86ae79cfcdbab0007c206
- https://github.com/juju/juju
- https://github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/uniter/paths.go#L222
- https://pkg.go.dev/vuln/GO-2024-3174
More Canonical Juju vulnerabilities
- TI-2026-03806 Improper TLS Client/Server authentication and certificate verification on Database Cluster CVSS 3.1CRITICAL 10.0
- TI-2025-33458 Zip slip vulnerability in Juju CVSS 3.1HIGH 8.8
- TI-2025-00786 Arbitrary executable upload via authenticated endpoint CVSS 3.1HIGH 8.8
- TI-2017-06681 Juju before 1.25.12, 2.0.x before 2.0.4, and 2.1.x before 2.1.3 uses a UNIX domain socket… CVSS 3.0CRITICAL 9.8
- TI-2026-25186 Insecure Direct Object Reference attack via predictable secret ID in Juju CVSS 3.1MEDIUM 6.6
- TI-2025-41733 Juju: Resource poisoning CVSS 4.0HIGH 7.1
Sources
- CVE-2024-8037 · CVE Program
- CVE-2024-8037 · NVD
- FIRST EPSS
- GHSA-8v4w-f4r9-7h6x · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences