CVE-2026-54448: Trivy Helm Chart Tar Bomb Causes Vulnerability

HIGH
Advisory Identifier: GHSA-q3fv-x8vg-qqm4
CWE-789 CWE-400 CWE-770
Published
Advisory Summary

CVE-2026-54448 is a HIGH helm chart tar bomb causes vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting Trivy libraries in the Go ecosystem. The issue involves helm chart tar bomb causes oom via unbounded io.readall in parser. Remediation is available by upgrading affected packages to version 0.71.0.

CVE-2026-54448 at a Glance

CVE Identifier CVE-2026-54448
GHSA Identifier GHSA-q3fv-x8vg-qqm4
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-789: Memory Allocation with Excessive Size Value
Affected Product Trivy
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-54448

To remediate this vulnerability, upgrade all affected Trivy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/aquasecurity/trivy fixed: 0.71.0
Upgrade github.com/aquasecurity/trivy to 0.71.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/aquasecurity/trivy

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-54448, inspect your project dependencies for Trivy:

inspect dependencies for github.com/aquasecurity/trivy

Analyze the terminal output to locate any version of Trivy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.71.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In Trivy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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 `.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.

CVE-2026-54448 Affected Trivy Versions

1 component(s)
Fixed Versions:
0.71.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/aquasecurity/trivy
Go
< 0.71.0
0.71.0

References

Frequently Asked Questions

What is CVE-2026-54448?
CVE-2026-54448 is a security vulnerability in Trivy involving Helm chart tar bomb causes OOM via unbounded io.ReadAll in parser under CWE-789: Memory Allocation with Excessive Size Value.
Which Trivy versions are affected?
Affected versions include releases prior to 0.71.0 across affected packages: github.com/aquasecurity/trivy.
What version fixes CVE-2026-54448?
Upgrading to 0.71.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/aquasecurity/trivy affected?
Yes, github.com/aquasecurity/trivy is affected in releases prior to 0.71.0. Upgrade your dependency to 0.71.0 or later.
What CWE is associated with CVE-2026-54448?
CVE-2026-54448 is classified under CWE-789: Memory Allocation with Excessive Size Value (The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.).
How can I check Go dependencies for CVE-2026-54448?
Run the dependency tree command: 'inspect dependencies for github.com/aquasecurity/trivy'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q3fv-x8vg-qqm4",
  "modified" : "2026-07-14T19:52:14Z",
  "published" : "2026-07-14T19:52:14Z",
  "aliases" : [ "CVE-2026-54448" ],
  "summary" : "Trivy: Helm chart tar bomb causes OOM via unbounded io.ReadAll in parser",
  "details" : "## Summary\n\nWhen 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.\n\n## Affected configurations\n\nExploitation 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:\n\n| Command | Condition |\n| --- | --- |\n| `trivy config <dir>` | Directory contains a crafted `.tgz` Helm chart (misconfiguration scanning is always enabled) |\n| `trivy filesystem --scanners misconf <dir>` | Directory contains a crafted `.tgz` Helm chart **and** `--scanners misconf` is explicitly enabled |\n| `trivy image --scanners misconf <image>` | Image contains a crafted `.tgz` Helm chart **and** `--scanners misconf` is explicitly enabled |\n\nRealistic scenarios include:\n- A CI pipeline that runs `trivy config .` on a repository where a contributor can submit a pull request containing a crafted chart archive.\n- A pipeline that scans a container image with `--scanners misconf`, whose build context includes untrusted `.tgz` files.\n\n## Impact\n\nAn 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.\n\nThe 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.\n\nThere is no impact on confidentiality or integrity of the scanned system.\n\n## Patches\n\nFixed 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.\n\n## Workarounds\n\nIf upgrading is not immediately possible:\n- Set a memory limit (cgroup/container) on the Trivy process to bound the blast radius.\n- Use `--skip-dirs` to exclude directories containing untrusted Helm chart archives from the scan.\n- Avoid scanning repositories or images with untrusted `.tgz` files.\n\n## Credits\n\nReported by @jamesgol.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/aquasecurity/trivy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.71.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aquasecurity/trivy/security/advisories/GHSA-q3fv-x8vg-qqm4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-54448"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aquasecurity/trivy/pull/10718"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aquasecurity/trivy/commit/441251e51ae46cbcf7f436547e0a5766b25328b4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aquasecurity/trivy"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aquasecurity/trivy/releases/tag/v0.71.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-770", "CWE-789" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-14T19:52:14Z",
    "nvd_published_at" : "2026-06-25T17:16:41Z"
  }
}