CVE-2024-6984
NixOS vulnerability analysis and mitigation

Overview

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. The vulnerability affects multiple versions of Juju including 2.9.x, 3.1.x, 3.3.x, 3.4.x, and 3.5.x series, and has been patched in versions 2.9.50, 3.1.9, 3.3.6, 3.4.5, and 3.5.3. This vulnerability was assigned CVE-2024-6984 and was discovered in July 2024 (NVD, GitHub Advisory).

Technical details

The vulnerability stems from overly broad permissions on /var/lib/juju/ directory and the leakage of sensitive context ID in error messages. When a hook is executing, an unprivileged user can capture the context ID from error messages and use it to access sensitive data. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (High) by Canonical Ltd., with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. The issue is classified under CWE-209 (Generation of Error Message Containing Sensitive Information) (NVD, GitHub Advisory).

Impact

The vulnerability allows local unprivileged users to access sensitive data including secrets, private keys, and relation data accessible to the local charm. A single compromised host in Juju may provide arbitrary access to target applications, potentially enabling privilege abuse and escalation in the environment. The impact is particularly severe as it can expose secrets containing sensitive information of any workloads (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple versions: 2.9.50, 3.1.9, 3.3.6, 3.4.5, and 3.5.3. The fix involves preventing the leak of JUJUCONTEXTID in error messages and limiting the permissions within /var/lib/juju to root-only access. Users are advised to upgrade to the patched versions (GitHub Advisory, Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe-it
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management