{"id":"CVE-2026-63328","aliases":["CVE-2026-63328","GHSA-8rc5-4fr6-64pw","GO-2026-6250"],"related":["CGA-5r92-5xgm-8pjw"],"kind":"vulnerability","state":"published","title":"Trivy: Path Traversal in Trivy Plugin Manager Allows Arbitrary File Write","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nTrivy'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.\n\nPlugins are third-party binaries that Trivy downloads and executes, so Trivy's [documentation](https://trivy.dev/docs/latest/guide/plugin/) 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.\n\n## Affected configurations\n\nThe 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.\n\nPlugins distributed through the official Trivy plugin index are not affected.\n\n## Impact\n\nA 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.\n\n## Patches\n\nFixed in Trivy `0.72.0`. Users should upgrade to that release or later.\n\n## Workarounds\n\nOnly install Trivy plugins from sources you trust. Plugins from the official Trivy plugin index are safe. See the [plugin documentation](https://trivy.dev/docs/latest/guide/plugin/) for details.\n\n## Credits\n\nReported by @fatihhcelik.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Trivy Plugin Manager has Path Traversal that Allows Arbitrary File Write in github.com/aquasecurity/trivy","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-08-18T15:14:21.879Z","modified":"2026-10-22T22:10:00.250Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.72.0","status":"affected"}],"vendor":"aquasecurity","product":"trivy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.72.0"}],"ecosystem":"Go","package":"github.com/aquasecurity/trivy","purl":"pkg:golang/github.com/aquasecurity/trivy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.72.0"}],"ecosystem":"Go","package":"github.com/aquasecurity/trivy","purl":"pkg:golang/github.com/aquasecurity/trivy","source":"go"}],"references":[{"url":"https://github.com/aquasecurity/trivy/security/advisories/GHSA-8rc5-4fr6-64pw","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/aquasecurity/trivy/commit/d4213d7735c74e57f06c02ccb39ebca67abc7959","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/aquasecurity/trivy/releases/tag/v0.72.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/aquasecurity/trivy","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-18T15:48:35.086Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63328","url":"https://www.cve.org/CVERecord?id=CVE-2026-63328","licence":"CVE Terms of Use","modified":"2026-08-18T15:48:40.395Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8rc5-4fr6-64pw","url":"https://github.com/advisories/GHSA-8rc5-4fr6-64pw","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:13.512Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6250","url":"https://pkg.go.dev/vuln/GO-2026-6250","licence":"CC-BY-4.0","modified":"2026-09-01T21:56:11.041Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63328","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63328","licence":"Public domain","modified":"2026-10-22T22:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:33.506Z","epss":{"score":0.00151,"percentile":0.04484,"date":"2026-12-01T12:00:22.000Z"}}