CVE-2024-8037 Vulnerable juju hook tool abstract UNIX domain socket

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
github.com/juju/juju GoAll versions0.0.0-20240820065804-2f2ec128ef5a
github.com/juju/juju GoAll versions0.0.0-20240820065804-2f2ec128ef5a
github.com/juju/juju GoAll versions0.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.

Sources

Also known as GHSA-8v4w-f4r9-7h6x, GO-2024-3174.

Is CVE-2024-8037 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free