Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐹 Go

GHSA-6vjm-54vp-mxhx

HIGH

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

Also known asGO-2024-3040
Published
Aug 5, 2024
Updated
Mar 14, 2026
Affected
5 pkgs
Patched
5 / 5
Exploits
None indexed

Blast Radius

5 pkgs affected
🐹github.com/juju/juju🐹github.com/juju/juju🐹github.com/juju/juju🐹github.com/juju/juju🐹github.com/juju/juju

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

5 total 5 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/juju/jujuall versions2.9.50
🐹Gogithub.com/juju/juju3.0.0&&< 3.1.93.1.9
🐹Gogithub.com/juju/juju3.2.0&&< 3.3.63.3.6
🐹Gogithub.com/juju/juju3.4.0&&< 3.4.53.4.5
🐹Gogithub.com/juju/juju3.5.0&&< 3.5.33.5.3

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/juju/juju. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update github.com/juju/juju to 2.9.50 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-6vjm-54vp-mxhx is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-6vjm-54vp-mxhx is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-6vjm-54vp-mxhx. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is GHSA-6vjm-54vp-mxhx in your dependencies?

O3 detects GHSA-6vjm-54vp-mxhx across Go dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.