CVE-2026-63328
JSON

6.8medium

Trivy: Path Traversal in Trivy Plugin Manager Allows Arbitrary File Write

Severity
6.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-8rc5-4fr6-64pwGO-2026-6250

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.

Affected

Product or packageVersionsReported by
aquasecurity trivy< 0.72.0CVE List
github.com/aquasecurity/trivy (Go)before 0.72.0GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M6.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Summary

Trivy's plugin manager does not fully validate metadata from a plugin's manifest before using it to construct filesystem paths under the plugin root (~/.trivy/plugins). A crafted plugin can cause Trivy to write its files (the manifest and the downloaded plugin binary) outside the plugin root, to an arbitrary location writable by the user running Trivy.

Plugins are third-party binaries that Trivy downloads and executes, so Trivy's documentation already advises installing only plugins you trust. This issue does not change that trust boundary: exploitation requires the user to install a malicious plugin in the first place.

Affected configurations

The vulnerability is triggered only when a user installs an attacker-controlled plugin, for example via trivy plugin install <SOURCE> or trivy plugin run <SOURCE>. An attacker has to trick a user into installing a plugin they crafted, for instance by publishing it or by getting a malicious source pasted into a command or documentation snippet.

Plugins distributed through the official Trivy plugin index are not affected.

Impact

A user who installs a malicious plugin can have files written outside the plugin root, to any location writable by the user running Trivy. The vulnerability does not grant any privileges beyond what that user already has.

Patches

Fixed in Trivy 0.72.0. Users should upgrade to that release or later.

Workarounds

Only install Trivy plugins from sources you trust. Plugins from the official Trivy plugin index are safe. See the plugin documentation for details.

Credits

Reported by @fatihhcelik.

Go Vulnerability Database

Trivy Plugin Manager has Path Traversal that Allows Arbitrary File Write in github.com/aquasecurity/trivy

NVD (es)

Trivy es un escáner de seguridad. Antes de la versión 0.72.0, los metadatos del manifiesto del plugin son utilizados por pkg/plugin/manager.go para construir rutas bajo ~/.trivy/plugins sin confinar los nombres de los plugins a esa raíz, permitiendo a un atacante que persuade a un usuario para instalar o ejecutar un plugin malicioso escribir el manifiesto y el binario del plugin en rutas arbitrarias donde el usuario tenga permisos de escritura, mientras que los plugins del índice oficial de plugins de Trivy no se ven afectados. Este problema está solucionado en la versión 0.72.0.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-63328 changed 2026-08-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-8rc5-4fr6-64pw changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-6250 changed 2026-09-01CC-BY-4.0
NVDCVE-2026-63328 changed 2026-10-22Public domain