CVE-2026-24845: malcontent OCI image pull credential exfiltration via malicious registry token realm
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.
Published Jan 29, 2026 · Updated Jan 31, 2026
Affected packages
github.com/chainguard-dev/malcontent
- Ecosystem
- Go
- Affected
- >= 0.10.0, < 1.20.3
- Fixed in
- 1.20.3
- Check
go list -m github.com/chainguard-dev/malcontent
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to 1seal, egibs, antitree, stevebeattie, 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 entriesGHSA-54p8-x2m9-c593
malcontent: Error-path cleanup gap can leak scanners and fds and degrade availability
medium5.3Mar 2, 2026CVE-2026-28407
malcontent: Nested archive extraction failure can drop content from scan inputs
medium6.9Feb 28, 2026CVE-2026-24846
malcontent vulnerable to symlink Path Traversal via handleSymlink argument confusion in archive extraction
medium5.5Jan 29, 2026
