Advisory

GHSA-6vjm-54vp-mxhx

Also known as: CVE-2024-6984, GO-2024-3010, GO-2024-3040

Summary

Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-08-05 17:19 UTC
Modified
2026-07-08 06:52 UTC

Affected packages and fixes

github.com/juju/juju

Go · All systems

Affected

  • introduced 0, fixed 2.9.50 (semver)

Fixed versions

2.9.50

Fix

github.com/juju/juju

Go · All systems

Affected

  • introduced 3.0.0, fixed 3.1.9 (semver)

Fixed versions

3.1.9

Fix

github.com/juju/juju

Go · All systems

Affected

  • introduced 3.2.0, fixed 3.3.6 (semver)

Fixed versions

3.3.6

Fix

github.com/juju/juju

Go · All systems

Affected

  • introduced 3.4.0, fixed 3.4.5 (semver)

Fixed versions

3.4.5

Fix

github.com/juju/juju

Go · All systems

Affected

  • introduced 3.5.0, fixed 3.5.3 (semver)

Fixed versions

3.5.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences