GHSA-54p8-x2m9-c593: malcontent: Error-path cleanup gap can leak scanners and fds and degrade availability
Several extraction and scanning code paths registered late defers which could leak resources and exhaust system resources. This report is an aggregate of these individual reports for the affected code: Advisory Affected File -- -- GHSA-jjgh-mc5q-gch7 pkg/action/scan.go GHSA-mwmf-fxh2-w4x7 pkg/archive/deb.go GHSA-p8j3-rpf5-gwv3 pkg/archive/gzip.go GHSA-qfh4-7f5v-75gq pkg/archive/zlib.go GHSA-wxxf-r586-5rf5…
Published Mar 2, 2026
Affected packages
github.com/chainguard-dev/malcontent
- Ecosystem
- Go
- Affected
- < 1.21.0
- Fixed in
- 1.21.0
- Check
go list -m github.com/chainguard-dev/malcontent
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Several extraction and scanning code paths registered late defers which could leak resources and exhaust system resources.
This report is an aggregate of these individual reports for the affected code: Advisory | Affected File -- | -- GHSA-jjgh-mc5q-gch7 | pkg/action/scan.go GHSA-mwmf-fxh2-w4x7 | pkg/archive/deb.go GHSA-p8j3-rpf5-gwv3 | pkg/archive/gzip.go GHSA-qfh4-7f5v-75gq | pkg/archive/zlib.go GHSA-wxxf-r586-5rf5 | pkg/archive/bzip2.go
Fix: #1354, #1355, #1356, #1361
Acknowledgements
Thank you to Oleh Konko from 1seal for discovering and reporting all six of these issues.
Credited to 1seal, stevebeattie, egibs.
References
- https://github.com/chainguard-dev/malcontent/security/advisories/GHSA-54p8-x2m9-c593
- https://github.com/chainguard-dev/malcontent/pull/1354
- https://github.com/chainguard-dev/malcontent/pull/1355
- https://github.com/chainguard-dev/malcontent/pull/1356
- https://github.com/chainguard-dev/malcontent/pull/1361
- https://github.com/advisories/GHSA-54p8-x2m9-c593
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 entriesCVE-2026-28407
malcontent: Nested archive extraction failure can drop content from scan inputs
medium6.9Feb 28, 2026CVE-2026-24845
malcontent OCI image pull credential exfiltration via malicious registry token realm
medium6.5Jan 29, 2026CVE-2026-24846
malcontent vulnerable to symlink Path Traversal via handleSymlink argument confusion in archive extraction
medium5.5Jan 29, 2026
