NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · 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

highCVSS 4.0 8.7 · 3.1 8.8

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.

Published Aug 5, 2024 · Updated Aug 7, 2024

Affected packages

github.com/juju/juju

Ecosystem
Go
Affected
< 2.9.50
Fixed in
2.9.50
Check
go list -m github.com/juju/juju

github.com/juju/juju

Ecosystem
Go
Affected
>= 3.0.0, < 3.1.9
Fixed in
3.1.9
Check
go list -m github.com/juju/juju

github.com/juju/juju

Ecosystem
Go
Affected
>= 3.2.0, < 3.3.6
Fixed in
3.3.6
Check
go list -m github.com/juju/juju

github.com/juju/juju

Ecosystem
Go
Affected
>= 3.4.0, < 3.4.5
Fixed in
3.4.5
Check
go list -m github.com/juju/juju

github.com/juju/juju

Ecosystem
Go
Affected
>= 3.5.0, < 3.5.3
Fixed in
3.5.3
Check
go list -m github.com/juju/juju

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to phvalguima, manadart, SimonRichardson, hpidcock, lucistanescu, eslerm.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries