Description
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.
Published: 2026-08-18
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Trivy, a popular open‑source scanner, builds plugin installation paths from manifest metadata without constraining the names to the ~/.trivy/plugins directory. This oversight allows a crafted plugin manifest to write files to any user‑writable location, which an attacker can use to overwrite existing executables or configuration files. The flaw exists only for plugins installed by the user and is not present in the official Trivy plugin index. The core weakness is a path traversal (CWE‑22) that can lead to remote code execution if the attacker writes a malicious binary into a location that later executes as part of the system.

Affected Systems

The vulnerability affects all releases of Trivy preceding 0.72.0. Any user who runs Trivy with the ability to install third‑party plugins is at risk. The issue does not appear in the official Trivy plugin index, so only external or custom plugin sources could exploit it.

Risk and Exploitability

The CVSS score of 6.8 indicates a medium‑to‑high severity. EPSS is unavailable and the vulnerability is not listed in CISA’s KEV catalog, suggesting limited public exploitation. The attack requires the user to install or run a malicious plugin, which is an indirect vector and may be mitigated by restricting plugin installation or verifying the source. Nonetheless, because the flaw permits arbitrary file writes on a compromised host, the potential impact is substantial, and timely remediation is recommended.

Generated by OpenCVE AI on August 18, 2026 at 16:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Trivy to version 0.72.0 or later, which removes the path traversal check
  • Ensure that only trusted plugin sources are used, and avoid installing plugins from unverified repositories
  • If upgrading is not possible, delete the ~/.trivy/plugins directory and restrict its permissions to prevent arbitrary writes; consider disabling plugin installation entirely

Generated by OpenCVE AI on August 18, 2026 at 16:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-8rc5-4fr6-64pw Trivy Plugin Manager has Path Traversal that Allows Arbitrary File Write
History

Tue, 18 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
First Time appeared Aquasecurity
Aquasecurity trivy
Vendors & Products Aquasecurity
Aquasecurity trivy

Tue, 18 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Trivy: Path Traversal in Trivy Plugin Manager Allows Arbitrary File Write
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 6.8, 'vector': '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'}


Subscriptions

Aquasecurity Trivy
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T15:48:40.395Z

Reserved: 2026-07-16T14:14:24.384Z

Link: CVE-2026-63328

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T16:18:12.387

Modified: 2026-08-18T16:18:12.387

Link: CVE-2026-63328

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:45:06Z

Weaknesses
  • CWE-22

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