CVE-2026-54448: Trivy: Helm chart tar bomb causes OOM via unbounded io.ReadAll in parser
Summary When Trivy scans a Helm chart archive (.tgz), its custom tar unpacker reads each entry with io.ReadAll(tr) and no size limit. An attacker who can place a malicious .tgz file in the scanned path can craft a small compressed archive that decompresses to gigabytes, causing the Trivy process to be killed by the OS OOM killer.
Published Jul 14, 2026
Affected packages
github.com/aquasecurity/trivy
- Ecosystem
- Go
- Affected
- < 0.71.0
- Fixed in
- 0.71.0
- Check
go list -m github.com/aquasecurity/trivy
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
When Trivy scans a Helm chart archive (.tgz), its custom tar unpacker reads each entry with io.ReadAll(tr) and no size limit. An attacker who can place a malicious .tgz file in the scanned path can craft a small compressed archive that decompresses to gigabytes, causing the Trivy process to be killed by the OS OOM killer.
Affected configurations
Exploitation requires the attacker to place a crafted .tgz file in a location that Trivy will scan as a Helm chart. This applies to the following scan targets:
| Command | Condition | | `trivy config <dir>` | Directory contains a crafted `.tgz` Helm chart (misconfiguration scanning is always enabled) | | `trivy filesystem --scanners misconf <dir>` | Directory contains a crafted `.tgz` Helm chart **and** `--scanners misconf` is explicitly enabled | | `trivy image --scanners misconf <image>` | Image contains a crafted `.tgz` Helm chart **and** `--scanners misconf` is explicitly enabled |
Realistic scenarios include:
- A CI pipeline that runs
trivy config .on a repository where a contributor can submit a pull request containing a crafted chart archive. - A pipeline that scans a container image with
--scanners misconf, whose build context includes untrusted.tgzfiles.
Impact
An attacker who satisfies the conditions above can exhaust all available memory on the host running Trivy. The OS OOM killer will terminate the Trivy process and may affect other processes sharing the same host or CI runner.
The practical impact in CI environments is denial of service: the scan fails, the pipeline is blocked, and repeated submissions re-trigger the same condition. Cloud CI runners may also incur additional costs for consumed resources.
There is no impact on confidentiality or integrity of the scanned system.
Patches
Fixed in Trivy v0.71.0 (#10718). The custom tar unpacker was replaced with archive.LoadArchiveFiles from the official helm.sh/helm/v4 SDK, which enforces per-entry and total size limits and validates archive structure. Users should upgrade to v0.71.0 or later.
Workarounds
If upgrading is not immediately possible:
- Set a memory limit (cgroup/container) on the Trivy process to bound the blast radius.
- Use
--skip-dirsto exclude directories containing untrusted Helm chart archives from the scan. - Avoid scanning repositories or images with untrusted
.tgzfiles.
Credits
Reported by @jamesgol.
References
- https://github.com/aquasecurity/trivy/security/advisories/GHSA-q3fv-x8vg-qqm4
- https://nvd.nist.gov/vuln/detail/CVE-2026-54448
- https://github.com/aquasecurity/trivy/pull/10718
- https://github.com/aquasecurity/trivy/commit/441251e51ae46cbcf7f436547e0a5766b25328b4
- https://github.com/aquasecurity/trivy/releases/tag/v0.71.0
- https://github.com/advisories/GHSA-q3fv-x8vg-qqm4
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-55092
Trivy has a path traversal via a crafted vulnerability database or other downloaded artifacts
high7.5Aug 25, 2026CVE-2026-63328
Trivy Plugin Manager has Path Traversal that Allows Arbitrary File Write
medium6.8Aug 18, 2026CVE-2026-33634
Trivy ecosystem supply chain was briefly compromised
critical9.4ExploitedNo fixMar 24, 2026CVE-2024-35192
Trivy possibly leaks registry credential when scanning images from malicious registries
medium5.5May 20, 2024
