Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish crafted OCI artifact in registry
-
DeliverySet malicious image.title traversal annotation
-
ExploitVictim runs Trivy against artifact
-
ExecutionTrivy writes layer to arbitrary path
-
PersistOverwrite sensitive file or drop payload
-
ImpactIntegrity/availability compromise or code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that an attacker can cause Trivy (a version prior to 0.71.1) to fetch an attacker-controlled OCI artifact - for example by hosting it in a registry the victim pulls from or by poisoning an artifact reference - and that the victim actively runs Trivy to download/scan that artifact (CVSS UI:A). The specific trigger is the org.opencontainers.image.title manifest annotation containing a traversal or absolute path; without control over that annotation value there is no exploit. Limiting factors: required user interaction (the scan must be initiated against the malicious artifact), and that organizations restricting Trivy to trusted internal registries are not realistically exposed. No authentication on the target host is needed and no special target-side configuration flag beyond normal OCI-artifact fetching behavior is required. |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H) scores 7.0 and is internally consistent with the description: network-reachable artifact fetch, low complexity, no privileges, but Active user interaction (UI:A) because a victim must run Trivy against the malicious artifact. Impact is integrity-high and availability-high with no confidentiality loss - matching an arbitrary file-write that can corrupt or overwrite files but does not directly disclose data. No KEV listing and no POC are present in the supplied intelligence, and no EPSS score was provided, so realistic exploitation likelihood cannot be quantified from the data - this should be treated as a credible but not confirmed-exploited issue. The UI:A requirement is the main limiting factor: an attacker cannot trigger it passively but must induce a victim to scan a malicious or compromised artifact reference, which is plausible in supply-chain or poisoned-registry scenarios. Overall this is a legitimate priority for environments that pull OCI artifacts from untrusted or shared registries, but lower urgency where Trivy only fetches from trusted, controlled sources. |
| Exploit ScenarioDerived | An attacker publishes or compromises an OCI artifact in a registry and sets its org.opencontainers.image.title annotation to a value like ../../../../etc/cron.d/payload. A developer or CI job runs Trivy to pull and scan that artifact, and Trivy writes the layer content to the attacker-chosen path outside the intended directory, potentially overwriting a configuration file or dropping a file that leads to code execution. No public POC is identified at time of analysis, and the attack succeeds only because the victim actively initiates the scan (UI:A). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 25, 2026
Arbitrary file write in Aqua Security's Trivy scanner (prior to 0.71.1) allows an attacker who can make Trivy fetch an attacker-controlled OCI artifact to write layer content anywhere on the host filesystem. Trivy trusts the org.opencontainers.image.title manifest annotation as the output filename without sanitization, so a crafted value containing path-traversal sequences escapes the intended download directory (CWE-22). No public exploit has been identified at time of analysis; the CVSS 4.0 score is 7.0 (high), driven by high integrity and availability impact requiring user interaction.
RemediationAI
Vendor-released patch: upgrade Trivy to 0.71.1 or later, which adds validation of the OCI artifact destination path; this is the primary and recommended fix, documented in advisory GHSA-mcj4-mphf-j9ff (https://github.com/aquasecurity/trivy/security/advisories/GHSA-mcj4-mphf-j9ff). Where immediate upgrade is not possible, restrict Trivy to fetching OCI artifacts only from trusted, access-controlled registries and avoid scanning artifacts from untrusted or user-supplied references - this removes the attacker's ability to deliver a crafted manifest but reduces flexibility in multi-tenant or community-registry workflows. As a further compensating control, run Trivy as a low-privilege, non-root user inside a sandboxed or containerized context with a read-only host filesystem except for a dedicated scratch directory, limiting where an arbitrary write can land at the cost of some operational overhead. Verify the integrity and provenance of any OCI artifacts (signing/attestation) before allowing Trivy to download them.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Trivy is an open-source vulnerability and misconfiguration scanner (cpe:2.3:a:aquasecurity:trivy) widely used in CI/CD pipelines, container registries, and developer workflows. It can retrieve OCI (Open Container Initiative) artifacts - for example databases, plugins, or modules distributed over registries - whose manifests carry standardized annotations. The org.opencontainers.image.title annotation is an OCI-spec-defined, human-readable title for an artifact layer; Trivy reused this attacker-influenceable string directly as the on-disk destination filename. Because the value is taken from the remote manifest without validating or canonicalizing the resulting path, embedding sequences such as ../ or an absolute path lets the write escape the intended directory. This is a classic CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), specifically an arbitrary-file-write variant where the traversal controls where downloaded bytes land rather than what is read.
Know when Trivy gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Remote attacker-controlled artifact fetched over the network with low complexity and no privileges, but the victim must run the scan (UI:R); arbitrary file write yields high integrity/availability impact and no confidentiality loss.
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Executive ViewAI
Aqua Security's Trivy scanner versions prior to 0.71.1 contain a critical path-traversal vulnerability (CVE-2026-55092, CVSS 7.0) that enables arbitrary file writes to the host filesystem through crafted OCI artifact manifests. Organizations using unpatched Trivy deployments risk attackers overwriting critical system or application files, compromising system integrity and availability. The vulnerability requires fetching attacker-controlled artifacts but poses significant risk to supply chain scanning infrastructure that handles external container images.
Apply vendor patch: Trivy 0.71.1 or later
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Trivy security scanner v0.69.4 was compromised in a supply chain attack where a threat actor used stolen credentials to
Decompression bomb (zip bomb) in Trivy's Helm chart scanner causes denial of service via OOM kill when processing a craf
Arbitrary file write in Trivy's plugin manager prior to version 0.72.0 allows a malicious plugin author to escape the co
Trivy versions before 0.71.0 allow directory traversal through Terraform filesystem functions during misconfiguration sc
EUVD-2026-39477
GHSA-mcj4-mphf-j9ff
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB