CVE-2026-104994

github.com/aquasecurity/trivy: Trivy: Information disclosure via directory traversal in Terraform filesystem functions

Published Oct 2, 2026 CVSS 3.1 · 2.5 Low EPSS < 1% KEV · Not listed
Description
Trivy before 0.71.0 allows directory traversal in Terraform filesystem functions when they try to access pathnames above the scan root. The risk occurs when using misconf scanning on untrusted input (e.g., upon a third-party pull request that contains a Terraform configuration), if sensitive data can be found at those unintended pathnames, and an adversary can then view a sensitive data value within scan output.

Analysis

AI-generated

Technical impact

Trivy before version 0.71.0 has a directory‑traversal flaw in its Terraform filesystem functions. When a scan attempts to resolve pathnames that ascend above the scan root, the function may access files outside the intended directory. An attacker scanning a malicious or untrusted Terraform configuration (for example, a third‑party pull request) could exploit this to read any data that resides at those unintended pathnames. The flaw is a CWE‑22 Path Traversal issue (also noted as CWE‑24), and the primary impact is a breach of confidentiality: the attacker gains viewable information that should have been locked behind the scan root.

Affected Systems

The vulnerability affects Aquasec Trivy, a popular open‑source vulnerability scanner. All releases prior to 0.71.0 are impacted. Users of any Trivy instance that scans Terraform code before this patch are in scope.

Risk and Exploitability

The CVSS score of 2.5 signals a low‑severity problem, and the EPSS score of < 1% indicates a very low likelihood of exploitation. The vulnerability is not listed in CISA KEV. Exploitation requires the scanner to evaluate untrusted input containing Terraform files that reference parent directories. There is no remote network attack vector; the weakness is exercised during local scan jobs (for example, CI pipelines). While the low CVSS indicates limited damage, the secrecy of files read can still be significant in contexts where the scan environment has access to privileged data. Organizations should treat this as a low‑to‑moderate risk in environments that automatically process third‑party code, but the risk diminishes in strictly controlled, trusted scanning processes.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Trivy to version 0.71.0 or later
  • Apply the upstream patch identified by commit 9d91b888cf63023e9c09b64259a4c1cea8dfe993 if an upgrade is not immediately possible
  • Restrict Terraform scanning to trusted code sources or disable scanning of untrusted third‑party pull requests until a fix is available

Generated by OpenCVE AI on October 9, 2026 at 02:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Directory Traversal in Trivy Terraform Filesystem Functions github.com/aquasecurity/trivy: Trivy: Information disclosure via directory traversal in Terraform filesystem functions
Weaknesses CWE-22
References
Metrics threat_severity

None

threat_severity

Low

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Directory Traversal in Trivy Terraform Filesystem Functions
Type Values Removed Values Added
Description Trivy before 0.71.0 allows directory traversal in Terraform filesystem functions when they try to access pathnames above the scan root. The risk occurs when using misconf scanning on untrusted input (e.g., upon a third-party pull request that contains a Terraform configuration), if sensitive data can be found at those unintended pathnames, and an adversary can then view a sensitive data value within scan output.
First Time appeared Aquasec
Aquasec trivy
Weaknesses CWE-24
CPEs cpe:2.3:a:aquasec:trivy:*:*:*:*:*:*:*:*
Vendors & Products Aquasec
Aquasec trivy
References
Metrics cvssV3_1

{'score': 2.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-24

    Path Traversal: '../filedir'

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 5, 2026, 5:29 PM
Reserved
Oct 2, 2026, 7:52 PM
Status
Deferred
Published
Oct 2, 2026, 8:17 PM
Modified
Oct 5, 2026, 6:17 PM
Severity
Low
Public date
Oct 2, 2026, 7:52 PM