CVE-2024-8037: Vulnerable juju hook tool abstract UNIX domain socket
Impact When combined with an attack of JUJUCONTEXTID, 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.
Published Oct 3, 2024 · Updated Oct 9, 2024
Affected packages
github.com/juju/juju
- Ecosystem
- Go
- Affected
- < 0.0.0-20240820065804-2f2ec128ef5a
- Fixed in
- 0.0.0-20240820065804-2f2ec128ef5a
- Check
go list -m github.com/juju/juju
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/uniter/paths.go#L222
Credited to hpidcock, phvalguima.
References
- https://github.com/juju/juju/security/advisories/GHSA-8v4w-f4r9-7h6x
- https://github.com/juju/juju/security/advisories/GHSA-mh98-763h-m9v4
- https://nvd.nist.gov/vuln/detail/CVE-2024-8037
- https://github.com/juju/juju/commit/2f2ec128ef5a8ca81fc86ae79cfcdbab0007c206
- https://github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/uniter/paths.go#L222
- https://pkg.go.dev/vuln/GO-2024-3174
- https://github.com/advisories/GHSA-8v4w-f4r9-7h6x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-5412
Juju: CloudSpec method leaking cloud credentials
critical9.9Apr 10, 2026CVE-2026-5774
Juju: In-Memory Token Store for Discharge Tokens Lacks Concurrency Safety and Persistence
medium6.4Apr 10, 2026CVE-2025-68152
Juju: Read All Controller Logs From Compromised Workload
medium4.9Apr 3, 2026CVE-2025-68153
Juju has a resource poisoning vulnerability
high6.5Apr 3, 2026CVE-2026-4370
Juju has Improper TLS Client/Server authentication and certificate verification on Database Cluster
critical10.0No fixApr 2, 2026CVE-2026-32691
Juju affected by timing ownership claim attack on new external back-end secrets
medium5.3Mar 19, 2026
