Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/juju/juju
  4. ›
  5. CVE-2024-8037

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

October 3, 2024 (updated October 9, 2024)

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.

References

  • github.com/advisories/GHSA-8v4w-f4r9-7h6x
  • github.com/juju/juju
  • github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/uniter/paths.go
  • github.com/juju/juju/commit/2f2ec128ef5a8ca81fc86ae79cfcdbab0007c206
  • github.com/juju/juju/security/advisories/GHSA-8v4w-f4r9-7h6x
  • github.com/juju/juju/security/advisories/GHSA-mh98-763h-m9v4
  • nvd.nist.gov/vuln/detail/CVE-2024-8037
  • pkg.go.dev/vuln/GO-2024-3174

Code Behaviors & Features

Detect and mitigate CVE-2024-8037 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20240820065804-2f2ec128ef5a

Fixed versions

  • 0.0.0-20240820065804-2f2ec128ef5a

Solution

Upgrade to version 0.0.0-20240820065804-2f2ec128ef5a or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control

Source file

go/github.com/juju/juju/CVE-2024-8037.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:46 +0000.