CVE-2024-8038: Github.com/juju/juju Vulnerable Juju Introspection Abstract UNIX Vulnerability

MODERATE
Advisory Identifier: GHSA-xwgj-vpm9-q2rq
CVSS 7.9
Published
Advisory Summary

CVE-2024-8038 is a MODERATE (CVSS 7.9) vulnerable juju introspection abstract unix vulnerability (General Security Weakness) affecting Github.com/juju/juju libraries in the Go ecosystem. The issue involves vulnerable juju introspection abstract unix domain socket. Remediation is available by upgrading affected packages to version 0.0.0-20240829052008-43f0fc59790d.

CVE-2024-8038 at a Glance

CVE Identifier CVE-2024-8038
GHSA Identifier GHSA-xwgj-vpm9-q2rq
Severity MODERATE
CVSS v3.1 Base Score 7.9
CWE Classification General Security Weakness
Affected Product Github.com/juju/juju
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability High (A:H)

How to Fix CVE-2024-8038

To remediate this vulnerability, upgrade all affected Github.com/juju/juju dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/juju/juju fixed: 0.0.0-20240829052008-43f0fc59790d
Upgrade github.com/juju/juju to 0.0.0-20240829052008-43f0fc59790d
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/juju/juju

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-8038, inspect your project dependencies for Github.com/juju/juju:

inspect dependencies for github.com/juju/juju

Analyze the terminal output to locate any version of Github.com/juju/juju in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20240829052008-43f0fc59790d), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Github.com/juju/juju, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact An abstract UNIX domain socket responsible for introspection is available without authentication locally to any user with access to the network namespace where the local juju agent is running. On a juju controller agent, denial of service can be performed by using the `/leases/revoke` endpoint. Revoking leases in juju can cause availability issues. On a juju machine agent that is hosting units, disabling the unit component can be performed using the `/units` endpoint with a "stop" action. ### Patches Patch: https://github.com/juju/juju/commit/43f0fc59790d220a457d4d305f484f62be556d3b Patched in: - 3.5.4 - 3.4.6 - 3.3.7 - 3.1.10 - 2.9.51 ### Workarounds No workaround. ### References https://github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/introspection/worker.go#L125

CVE-2024-8038 Affected Github.com/juju/juju Versions

1 component(s)
Fixed Versions:
0.0.0-20240829052008-43f0fc59790d
Product / Package Ecosystem Affected Versions Fixed Version
github.com/juju/juju
Go
< 0.0.0-20240829052008-43f0fc59790d
0.0.0-20240829052008-43f0fc59790d

References

Frequently Asked Questions

What is CVE-2024-8038?
CVE-2024-8038 is a security vulnerability in Github.com/juju/juju involving Vulnerable juju introspection abstract UNIX domain socket under General Security Weakness.
Which Github.com/juju/juju versions are affected?
Affected versions include releases prior to 0.0.0-20240829052008-43f0fc59790d across affected packages: github.com/juju/juju.
What version fixes CVE-2024-8038?
Upgrading to 0.0.0-20240829052008-43f0fc59790d (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/juju/juju affected?
Yes, github.com/juju/juju is affected in releases prior to 0.0.0-20240829052008-43f0fc59790d. Upgrade your dependency to 0.0.0-20240829052008-43f0fc59790d or later.
What is the CVSS score of CVE-2024-8038?
CVE-2024-8038 has a CVSS v3.1 base score of 7.9 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H.
What CWE is associated with CVE-2024-8038?
CVE-2024-8038 is classified under General Security Weakness.
How can I check Go dependencies for CVE-2024-8038?
Run the dependency tree command: 'inspect dependencies for github.com/juju/juju'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xwgj-vpm9-q2rq",
  "modified" : "2024-10-09T22:49:20Z",
  "published" : "2024-10-03T16:53:26Z",
  "aliases" : [ "CVE-2024-8038" ],
  "summary" : "Vulnerable juju introspection abstract UNIX domain socket",
  "details" : "### Impact\nAn abstract UNIX domain socket responsible for introspection is available without authentication locally to any user with access to the network namespace where the local juju agent is running.\n\nOn a juju controller agent, denial of service can be performed by using the `/leases/revoke` endpoint. Revoking leases in juju can cause availability issues.\n\nOn a juju machine agent that is hosting units, disabling the unit component can be performed using the `/units` endpoint with a \"stop\" action.\n\n### Patches\nPatch: https://github.com/juju/juju/commit/43f0fc59790d220a457d4d305f484f62be556d3b\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 workaround.\n\n### References\nhttps://github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/introspection/worker.go#L125\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/juju/juju"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20240829052008-43f0fc59790d"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/juju/juju/security/advisories/GHSA-xwgj-vpm9-q2rq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8038"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/juju/juju/commit/43f0fc59790d220a457d4d305f484f62be556d3b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/juju/juju"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/juju/juju/blob/725800953aaa29dbeda4f806097bf838e61644dd/worker/introspection/worker.go#L125"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3175"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-03T16:53:26Z",
    "nvd_published_at" : null
  }
}