---
id: CVE-2026-104994
title: >-
  Trivy before 0.71.0 allows directory traversal in Terraform filesystem
  functions when they try to access pathnames above the scan root
summary: >-
  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…
severity: low
cvss: 2.5
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-24
vendor: aquasec
product: Trivy
affected:
  - Trivy < 0.71.0
published: '2026-10-02'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T20:17:01.783'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-104994'
references:
  - url: 'https://github.com/aquasecurity/trivy/blob/main/CHANGELOG.md'
    label: cve@mitre.org
  - url: >-
      https://github.com/aquasecurity/trivy/commit/9d91b888cf63023e9c09b64259a4c1cea8dfe993
    label: cve@mitre.org
  - url: 'https://github.com/aquasecurity/trivy/pull/10664'
    label: cve@mitre.org
  - url: >-
      https://github.com/aquasecurity/trivy/security/advisories/GHSA-87hp-4m93-274g
    label: cve@mitre.org
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-02T22:33:09.844Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
