All reports
High

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

Affected versions

Version ranges need review.

Affected versions
< 2.9.50
Fixed version
2.9.50
Affected versions
>= 3.0.0, < 3.1.9
Fixed version
3.1.9
Affected versions
>= 3.4.0, < 3.4.5
Fixed version
3.4.5
Affected versions
*
Fixed version
Not reported
Affected versions
>= 3.5.0, < 3.5.3
Fixed version
3.5.3
Affected versions
>= 3.2.0, < 3.3.6
Fixed version
3.3.6

Exploitation

CVE-2024-6984

Probability of exploitation in the next 30 days: 0.38%

FIRST EPSS · 2026-11-22

Description

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.

Links

Credits

  • phvalguima
  • manadart
  • SimonRichardson
  • hpidcock
  • lucistanescu
  • eslerm
  • Pedro Valverde Guimaraes
  • Joe Phillips
  • Mark Esler