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.
Published: 2026-10-02
Score: 2.5 Low
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized disclosure of sensitive files via directory traversal
Action: Patch Promptly
AI Analysis

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.

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

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 yet.

History

Fri, 09 Oct 2026 00:15:00 +0000

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


Mon, 05 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 02 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
Title Directory Traversal in Trivy Terraform Filesystem Functions

Fri, 02 Oct 2026 20:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-05T17:29:18.653Z

Reserved: 2026-10-02T19:52:35.969Z

Link: CVE-2026-104994

cve-icon Vulnrichment

Updated: 2026-10-05T17:29:14.515Z

cve-icon NVD

Status : Deferred

Published: 2026-10-02T20:17:01.663

Modified: 2026-10-05T18:17:33.730

Link: CVE-2026-104994

cve-icon Redhat

Severity : Low

Publid Date: 2026-10-02T19:52:36Z

Links: CVE-2026-104994 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T02:15:20Z

Weaknesses
  • CWE-22

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

  • CWE-24

    Path Traversal: '../filedir'