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

- Severity: Medium 6.5 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-10-02T10:12:32.318Z
- Modified: 2026-06-17T08:21:44.260Z
- Also known as: GHSA-8v4w-f4r9-7h6x, GO-2024-3174
- Weaknesses: CWE-276, CWE-284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

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

(As written by CVE List.)

## Affected

- juju: from 3.5 before 3.5.4; from 3.4 before 3.4.6; from 3.3 before 3.3.7; from 3.1 before 3.1.10; from 2.9 before 2.9.51
- github.com/juju/juju (Go): before 0.0.0-20240820065804-2f2ec128ef5a
- canonical juju: before 2.9.51; from 3.1.0 before 3.1.10; from 3.2.0 up to 3.2.4; from 3.3.0 before 3.3.7; from 3.4 before 3.4.6; from 3.5.0 before 3.5.4

## Every score

- canonical: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:H/SA:H`

## References

- <https://github.com/juju/juju/security/advisories/GHSA-8v4w-f4r9-7h6x> (advisory, issue-tracking, patch, vendor-advisory, web)
- <https://www.cve.org/CVERecord?id=CVE-2024-8037> (issue-tracking, third-party-advisory)
- <https://github.com/juju/juju/security/advisories/GHSA-mh98-763h-m9v4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-8037> (advisory)
- <https://github.com/juju/juju/commit/2f2ec128ef5a8ca81fc86ae79cfcdbab0007c206> (fix, web)
- <https://github.com/juju/juju> (package)
- <https://github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/uniter/paths.go#L222> (web)
- <https://pkg.go.dev/vuln/GO-2024-3174> (web)

## Sources

- CVE List: [CVE-2024-8037](https://www.cve.org/CVERecord?id=CVE-2024-8037), CVE Terms of Use, modified 2024-11-01
- GitHub Advisory Database: [GHSA-8v4w-f4r9-7h6x](https://github.com/advisories/GHSA-8v4w-f4r9-7h6x), CC-BY-4.0, modified 2024-10-09
- Go Vulnerability Database: [GO-2024-3174](https://pkg.go.dev/vuln/GO-2024-3174), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-8037](https://nvd.nist.gov/vuln/detail/CVE-2024-8037), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-8037 · Whole record: https://cve.day/CVE-2024-8037.json · Rebuilt by cve.day 2026-11-25T22:58:45.957Z
