Affected versions
Version ranges need review.
- Affected versions
- >=0.10.0
- Fixed version
- Not reported
- Affected versions
- <1.20.3
- Fixed version
- 1.20.3
- Affected versions
- >= 0.10.0, < 1.20.3
- Fixed version
- 1.20.3
Exploitation
Description
Malcontent could be made to expose Docker registry credentials if it scanned a specially crafted OCI image reference. Malcontent uses google/go-containerregistry for OCI image pulls, which by default uses the Docker credential keychain. A malicious registry could return a WWW-Authenticate header redirecting token authentication to an attacker-controlled endpoint, causing credentials to be sent to that endpoint.
Fix: Default to anonymous auth for OCI pulls
Acknowledgements
Thank you to Oleh Konko from 1seal for discovering and reporting this issue.
Links
- https://github.com/advisories/GHSA-9m43-p3cx-w8j5
- https://github.com/chainguard-dev/malcontent
- https://github.com/chainguard-dev/malcontent/commit/538ed00cdc639d687a4bd1e843a2be0428a3b3e7
- https://github.com/chainguard-dev/malcontent/security/advisories/GHSA-9m43-p3cx-w8j5
- https://nvd.nist.gov/vuln/detail/CVE-2026-24845
Credits
- 1seal
- egibs
- antitree
- stevebeattie
- eslerm

