GitHub Advisoryadvisory · Go

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

HIGH Published 2024-08-05 Modified 2024-08-07 Official page ↗
Ecosystem
Go
Packages
github.com/juju/juju
Severity
High
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-209, CWE-269, CWE-284
Reviewed
2024-08-05

Affected packages

• Go github.com/juju/juju: < 2.9.50 → fixed in 2.9.50 • Go github.com/juju/juju: >= 3.0.0, < 3.1.9 → fixed in 3.1.9 • Go github.com/juju/juju: >= 3.2.0, < 3.3.6 → fixed in 3.3.6 • Go github.com/juju/juju: >= 3.4.0, < 3.4.5 → fixed in 3.4.5 • Go github.com/juju/juju: >= 3.5.0, < 3.5.3 → fixed in 3.5.3

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.

Related

Weakness · CWE (3)

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

References