{"id":"CVE-2024-8037","aliases":["CVE-2024-8037","GHSA-8v4w-f4r9-7h6x","GO-2024-3174"],"related":[],"kind":"vulnerability","state":"published","title":"Vulnerable juju hook tool abstract UNIX domain socket","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen 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.\n\n### Patches\nPatch: https://github.com/juju/juju/commit/2f2ec128ef5a8ca81fc86ae79cfcdbab0007c206\nPatched in:\n- 3.5.4\n- 3.4.6\n- 3.3.7\n- 3.1.10\n- 2.9.51\n\n### Workarounds\nNo workarounds available.\n\n### References\n[GHSA-mh98-763h-m9v4](https://github.com/juju/juju/security/advisories/GHSA-mh98-763h-m9v4)\nhttps://github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/uniter/paths.go#L222","format":"markdown","source":"ghsa"},{"lang":"en","text":"Vulnerable juju hook tool abstract UNIX domain socket in github.com/juju/juju","format":"markdown","source":"go"},{"lang":"es","text":"Herramienta de gancho Juju vulnerable que abstrae el socket de dominio UNIX. Cuando se combina con un ataque de JUJU_CONTEXT_ID, cualquier usuario del sistema local con acceso al espacio de nombres de red predeterminado puede conectarse al @/var/lib/juju/agents/unit-xxxx-yyyy/agent.socket y realizar acciones que normalmente están reservadas a un encanto Juju.","source":"nvd"}],"published":"2024-10-02T10:12:32.318Z","modified":"2026-06-17T08:21:44.260Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-276","CWE-284"],"affected":[{"ranges":[{"type":"semver","introduced":"3.5","fixed":"3.5.4","status":"affected"},{"type":"semver","introduced":"3.4","fixed":"3.4.6","status":"affected"},{"type":"semver","introduced":"3.3","fixed":"3.3.7","status":"affected"},{"type":"semver","introduced":"3.1","fixed":"3.1.10","status":"affected"},{"type":"semver","introduced":"2.9","fixed":"2.9.51","status":"affected"}],"vendor":"Canonical Ltd.","product":"Juju","package":"juju","repo":"https://github.com/juju/juju","platforms":["Linux"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20240820065804-2f2ec128ef5a"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20240820065804-2f2ec128ef5a"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"go"},{"ranges":[{"status":"affected","fixed":"2.9.51"},{"status":"affected","introduced":"3.1.0","fixed":"3.1.10"},{"status":"affected","introduced":"3.2.0","lastAffected":"3.2.4"},{"status":"affected","introduced":"3.3.0","fixed":"3.3.7"},{"status":"affected","introduced":"3.4","fixed":"3.4.6"},{"status":"affected","introduced":"3.5.0","fixed":"3.5.4"}],"vendor":"canonical","product":"juju","cpe":"cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/juju/juju/security/advisories/GHSA-8v4w-f4r9-7h6x","tags":["advisory","issue-tracking","patch","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-8037","tags":["issue-tracking","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/juju/juju/security/advisories/GHSA-mh98-763h-m9v4","tags":["web"],"sources":["ghsa","go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8037","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/juju/juju/commit/2f2ec128ef5a8ca81fc86ae79cfcdbab0007c206","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/juju/juju","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/uniter/paths.go#L222","tags":["web"],"sources":["ghsa","go"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3174","tags":["web"],"sources":["ghsa"]}],"credits":["Pedro Guimaraes","Harry Pidcock","Mark Esler"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-02T13:56:28.477Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-8037","url":"https://www.cve.org/CVERecord?id=CVE-2024-8037","licence":"CVE Terms of Use","modified":"2024-11-01T15:31:40.233Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8v4w-f4r9-7h6x","url":"https://github.com/advisories/GHSA-8v4w-f4r9-7h6x","licence":"CC-BY-4.0","modified":"2024-10-09T22:40:00.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3174","url":"https://pkg.go.dev/vuln/GO-2024-3174","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:50.919Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-8037","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8037","licence":"Public domain","modified":"2026-06-17T08:21:44.260Z"}],"updatedAt":"2026-11-25T22:58:45.957Z","epss":{"score":0.00187,"percentile":0.08677,"date":"2026-12-01T12:00:22.000Z"}}