CVE-2024-8037 Vulnerable juju hook tool abstract UNIX domain socket
Local attackers can access Juju agent sockets to perform charm-reserved actions, leading to privilege escalation and potential code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-8037?
CVE-2024-8037 is a medium-severity missing authorization vulnerability in Canonical Ltd. Juju, published on 2 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-276
Which versions are affected by CVE-2024-8037?
3 open source packages ship an affected version, including github.com/juju/juju. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/juju/juju Go | All versions | 0.0.0-20240820065804-2f2ec128ef5a |
github.com/juju/juju Go | All versions | 0.0.0-20240820065804-2f2ec128ef5a |
github.com/juju/juju Go | All versions | 0.0.0-20240820065804-2f2ec128ef5a |
Products include Canonical Juju.
How do I fix CVE-2024-8037?
Upgrade github.com/juju/juju to 0.0.0-20240820065804-2f2ec128ef5a or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-8037 being exploited?
There is no known exploitation of CVE-2024-8037 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ltd. Juju
- CVE-2026-4370 Improper TLS Client/Server authentication and certificate verification on Database Cluster
- CVE-2026-5412 Juju CloudSpec API could leak senstive information
- CVE-2017-9232 Juju uses a UNIX domain socket without setting appropriate permissions
- CVE-2026-32693 Unauthorized access to Kubernetes secrets in Juju
- CVE-2025-0928 Arbitrary executable upload via authenticated endpoint
Sources
Also known as GHSA-8v4w-f4r9-7h6x, GO-2024-3174.