Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft plugin manifest with path traversal sequence in name field
-
DeliveryHost malicious plugin on unofficial repository
-
ExploitSocial-engineer user into installing plugin
-
ExecutionUser executes trivy plugin install
-
PersistManager resolves traversal path without confinement
-
ImpactWrite attacker-controlled content to arbitrary user-writable path
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 the victim user to install or run a Trivy plugin obtained from an untrusted source outside the official Trivy plugin index. The attacker must control the plugin manifest and craft a malicious plugin name field containing directory traversal sequences. The official Trivy plugin index is explicitly safe per vendor advisory - only third-party or attacker-distributed plugins can carry the malicious manifest. File writes are bounded to paths writable by the victim's user account; root filesystem paths and system directories are not reachable without a separate privilege escalation primitive. Trivy deployments that enforce official-index-only plugin sourcing through policy or CI/CD controls are not exploitable. CVSS PR:N indicates no system privileges are required from the attacker's perspective; CVSS UI:A (active user interaction) confirms the mandatory install action by the victim. |
| Impact | The CVSS 4.0 score of 6.8 (AV:L/AC:L/AT:N/PR:N/UI:A/VI:H/VA:H) accurately reflects that exploitation requires local execution and active user interaction, significantly constraining real-world attack surface compared to network-exploitable vulnerabilities. The integrity and availability impacts are both High - an attacker writing to arbitrary user-writable paths can overwrite shell configuration, SSH keys, or cron jobs, enabling subsequent privilege escalation without this CVE itself requiring additional privileges. No EPSS data was supplied, precluding probabilistic scoring; the absence of a CISA KEV listing and public exploit code further reduces urgency relative to the raw score. The decisive risk factor is whether an organization permits installation of plugins from sources outside the official Trivy plugin index, which the vendor explicitly designates as safe. For teams enforcing official-index-only plugin sourcing, practical risk is negligible. For those allowing ad-hoc or community plugin installation - including in automated CI/CD contexts where developers pull community plugins freely - this represents a meaningful supply-chain-style threat warranting prompt patching. CVSS score and real-world risk are well-aligned here: medium priority for most deployments, elevated priority for open plugin environments. |
| Exploit ScenarioDerived | An attacker publishes a malicious Trivy plugin to a public repository with a plugin name field in the manifest containing a path traversal sequence targeting a sensitive user file, such as '../../../.ssh/authorized_keys'. After advertising the plugin as a useful scanning extension, the attacker persuades a developer or security engineer to run 'trivy plugin install' against the malicious source. On an unpatched Trivy installation, the plugin manager resolves the traversal path and writes attacker-controlled content to the victim's SSH authorized_keys, enabling subsequent remote access. No public exploit code exists at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Arbitrary file write in Trivy's plugin manager prior to version 0.72.0 allows a malicious plugin author to escape the confines of ~/.trivy/plugins and write files to any user-writable filesystem path. The flaw exists in pkg/plugin/manager.go, where plugin manifest metadata is used to construct file paths without enforcing directory confinement, enabling a path traversal (CWE-22) attack. No public exploit has been identified and no CISA KEV listing exists, but the attack is mechanically simple and the impact extends to overwriting sensitive user files such as shell profiles or SSH authorized_keys, creating realistic subsequent privilege escalation paths.
RemediationAI
Upgrade Trivy to version 0.72.0 or later, the vendor-released patch available at https://github.com/aquasecurity/trivy/releases/tag/v0.72.0 and confirmed by commit d4213d7735c74e57f06c02ccb39ebca67abc7959. If immediate upgrade is not possible, restrict plugin installation strictly to the official Trivy plugin index and prohibit installation from arbitrary URLs or unverified third-party repositories - this eliminates the attacker-controlled manifest required for exploitation, with the trade-off of blocking community plugin functionality. Additionally, audit any previously installed third-party plugins for suspicious manifest name fields containing sequences such as '../' before upgrading, as those files may already be present on disk.
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 (cpe:2.3:a:aquasecurity:trivy:*:*:*:*:*:*:*:*) is an open-source vulnerability and misconfiguration scanner widely used in container security and CI/CD pipelines. Its plugin subsystem, implemented in pkg/plugin/manager.go, allows users to extend Trivy by installing external plugins. The root cause is CWE-22 (Path Traversal): the plugin manager accepts a plugin name field from manifest metadata and uses it verbatim to construct filesystem paths under ~/.trivy/plugins without validating that the resolved path stays within that directory root. A crafted plugin name containing traversal sequences such as '../../../.ssh/authorized_keys' redirects file write operations outside the intended directory. The fix in v0.72.0, visible in commit d4213d7735c74e57f06c02ccb39ebca67abc7959, introduces an xos.Root confinement primitive in pkg/plugin/manager.go that restricts all plugin-name-derived file path operations to the plugin root, preventing traversal escapes.
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:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Local vector with mandatory user interaction; attacker requires no system privileges; only integrity and availability impacted via arbitrary file write to user-writable paths.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Trivy is a security scanner. Prior to 0.72.0, plugin manifest metadata is used by pkg/plugin/manager.go to construct paths under ~/.trivy/plugins without confining plugin names to that root, allowing an attacker who persuades a user to install or run a malicious plugin to write the manifest and plugin binary to arbitrary user-writable paths, while plugins from the official Trivy plugin index are not affected. This issue is fixed in version 0.72.0.
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
Arbitrary file write in Aqua Security's Trivy scanner (prior to 0.71.1) allows an attacker who can make Trivy fetch an a
Decompression bomb (zip bomb) in Trivy's Helm chart scanner causes denial of service via OOM kill when processing a craf
Trivy versions before 0.71.0 allow directory traversal through Terraform filesystem functions during misconfiguration sc
EUVD-2026-60957
GHSA-8rc5-4fr6-64pw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB