CVE-2026-55092

Trivy: Path traversal via a crafted vulnerability database or other downloaded artifacts

Published Jun 25, 2026 CVSS 4.0 · 7 High EPSS < 1% KEV · Not listed
Description
Trivy is a security scanner. Prior to 0.71.1, when Trivy downloads an OCI artifact, it uses the org.opencontainers.image.title annotation from the artifact manifest as the destination filename without validation. An attacker who can make Trivy fetch an attacker-controlled artifact can supply a crafted annotation that resolves to a path outside the intended destination, causing Trivy to write the layer content to an arbitrary location on the host filesystem. This vulnerability is fixed in 0.71.1.

Analysis

AI-generated

Technical impact

Trivy, a container vulnerability scanner, stores OCI artifact layers to disk using the org.opencontainers.image.title annotation from the manifest as the destination filename. Before version 0.71.1 this value is accepted without validation. An attacker able to influence which artifact Trivy retrieves can supply a crafted annotation that resolves to a path outside the intended extraction directory, causing Trivy to write the layer contents to an arbitrary file on the host filesystem. This flaw permits unauthorized file creation or overwriting, potentially allowing modification of configuration files, installation of malicious payloads, or subsequent local code execution, thereby endangering the integrity and confidentiality of the host environment.

Affected Systems

Affected systems are installations of Trivy produced by Aquasecurity with a version older than 0.71.1. Any instance of the tool that downloads OCI artifacts is vulnerable, regardless of how it is invoked. The vulnerability is fixed in Trivy 0.71.1 and later releases. There are no known vendor patches for older releases besides updating the tool.

Risk and Exploitability

The flaw carries a CVSS score of 7, classifying it as high severity. Exploitation requires Trivy to fetch a maliciously crafted OCI artifact, which in turn necessitates either control over the registry from which the artifact is pulled or influence over the artifact reference used by the scanner. EPSS data is not available and the vulnerability is not listed in CISA's KEV catalog, indicating that widespread exploitation has not yet been observed. Nevertheless, once the attacker can supply the artifact, the ability to write to arbitrary locations on the host where Trivy runs can lead to privilege escalation or remote code execution if the host permissions are sufficiently high.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Trivy to version 0.71.1 or newer, which validates the annotation before writing files.
  • Limit Trivy's access to trusted OCI registries or use only verified artifacts to prevent downloading attacker‑controlled content.
  • Execute Trivy inside a non‑privileged container or isolated environment so that any arbitrary file writes are confined to a restricted filesystem view.

Generated by OpenCVE AI on June 25, 2026 at 18:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mcj4-mphf-j9ff Trivy has a path traversal via a crafted vulnerability database or other downloaded artifacts
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Aquasecurity
Aquasecurity trivy
Vendors & Products Aquasecurity
Aquasecurity trivy
Type Values Removed Values Added
Description Trivy is a security scanner. Prior to 0.71.1, when Trivy downloads an OCI artifact, it uses the org.opencontainers.image.title annotation from the artifact manifest as the destination filename without validation. An attacker who can make Trivy fetch an attacker-controlled artifact can supply a crafted annotation that resolves to a path outside the intended destination, causing Trivy to write the layer content to an arbitrary location on the host filesystem. This vulnerability is fixed in 0.71.1.
Title Trivy: Path traversal via a crafted vulnerability database or other downloaded artifacts
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 26, 2026, 2:08 AM
Reserved
Jun 16, 2026, 2:41 PM
Status
Analyzed
Published
Jun 25, 2026, 5:16 PM
Modified
Oct 25, 2026, 10:10 PM