# GHSA-54p8-x2m9-c593: malcontent: Error-path cleanup gap can leak scanners and fds and degrade availability

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-03-02T18:48:03.000Z
- Modified: 2026-03-23T04:56:28.838Z
- Also known as: GO-2026-4583
- Weaknesses: CWE-400

## Description

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](https://1seal.org/) for discovering and reporting all six of these issues.

(As written by GitHub Advisory Database.)

## Affected

- github.com/chainguard-dev/malcontent (Go): before 1.21.0

## References

- <https://github.com/chainguard-dev/malcontent/security/advisories/GHSA-54p8-x2m9-c593> (advisory, web)
- <https://github.com/chainguard-dev/malcontent/pull/1354> (fix, web)
- <https://github.com/chainguard-dev/malcontent/pull/1355> (fix, web)
- <https://github.com/chainguard-dev/malcontent/pull/1356> (fix, web)
- <https://github.com/chainguard-dev/malcontent/pull/1361> (fix, web)
- <https://github.com/chainguard-dev/malcontent> (package)

## Sources

- GitHub Advisory Database: [GHSA-54p8-x2m9-c593](https://github.com/advisories/GHSA-54p8-x2m9-c593), CC-BY-4.0, modified 2026-03-23
- Go Vulnerability Database: [GO-2026-4583](https://pkg.go.dev/vuln/GO-2026-4583), CC-BY-4.0, modified 2026-03-23

---

Page: https://cve.day/GHSA-54p8-x2m9-c593 · Whole record: https://cve.day/GHSA-54p8-x2m9-c593.json · Rebuilt by cve.day 2026-11-25T22:56:24.412Z
