Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/juju/juju
  4. ›
  5. GHSA-6vjm-54vp-mxhx

GHSA-6vjm-54vp-mxhx: Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm

August 5, 2024

An issue was discovered in Juju that resulted in the leak of the sensitive context ID, which allows a local unprivileged attacker to access other sensitive data or relation accessible to the local charm. A potential exploit where a user can run a bash loop attempting to execute hook tools. If running while another hook is executing, we log an error with the context ID, making it possible for the user to then use that ID in a following call successfully. This means an unprivileged user can access anything available via a hook tool such as config, relation data and secrets.

References

  • github.com/advisories/GHSA-6vjm-54vp-mxhx
  • github.com/juju/juju
  • github.com/juju/juju/commit/da929676853092a29ddf8d589468cf85ba3efaf2
  • github.com/juju/juju/security/advisories/GHSA-6vjm-54vp-mxhx
  • nvd.nist.gov/vuln/detail/CVE-2024-6984

Code Behaviors & Features

Detect and mitigate GHSA-6vjm-54vp-mxhx 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 2.9.50, all versions starting from 3.0.0 before 3.1.9, all versions starting from 3.2.0 before 3.3.6, all versions starting from 3.4.0 before 3.4.5, all versions starting from 3.5.0 before 3.5.3

Fixed versions

  • 2.9.50
  • 3.1.9
  • 3.3.6
  • 3.4.5
  • 3.5.3

Solution

Upgrade to versions 2.9.50, 3.1.9, 3.3.6, 3.4.5, 3.5.3 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-209: Generation of Error Message Containing Sensitive Information
  • CWE-269: Improper Privilege Management
  • CWE-284: Improper Access Control

Source file

go/github.com/juju/juju/GHSA-6vjm-54vp-mxhx.yml

Spotted a mistake? Edit the file on GitLab.

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

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