CVE-2026-54448
JSON

6.9medium

Trivy: Helm chart tar bomb causes OOM via unbounded io.ReadAll in parser

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.27% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-q3fv-x8vg-qqm4GO-2026-5983

Description

Trivy is a security scanner. Prior to 0.71.0, 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. This vulnerability is fixed in 0.71.0.

Affected

Product or packageVersionsReported by
aquasecurity trivy< 0.71.0CVE List
github.com/aquasecurity/trivy (Go)before 0.71.0GitHub Advisory Database, Go Vulnerability Database
aquasec trivybefore 0.71.0NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-770CWE-789

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Trivy is a security scanner. Prior to 0.71.0, 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. This vulnerability is fixed in 0.71.0.

GitHub Advisory Database

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:

CommandCondition
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 .tgz files.

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-dirs to exclude directories containing untrusted Helm chart archives from the scan.
  • Avoid scanning repositories or images with untrusted .tgz files.

Credits

Reported by @jamesgol.

Go Vulnerability Database

Trivy: Helm chart tar bomb causes OOM via unbounded io.ReadAll in parser in github.com/aquasecurity/trivy

NVD (es)

Trivy es un escáner de seguridad. Antes de la versión 0.71.0, cuando Trivy escanea un archivo de gráfico Helm (.tgz), su descompresor tar personalizado lee cada entrada con io.ReadAll(tr) y sin límite de tamaño. Un atacante que puede colocar un archivo .tgz malicioso en la ruta escaneada puede crear un archivo comprimido pequeño que se descomprime a gigabytes, lo que provoca que el proceso de Trivy sea terminado por el ’OOM killer’ del sistema operativo. Esta vulnerabilidad está corregida en la versión 0.71.0.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-54448 changed 2026-06-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-q3fv-x8vg-qqm4 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5983 changed 2026-07-28CC-BY-4.0
NVDCVE-2026-54448 changed 2026-10-25Public domain