# CVE-2026-63328: Trivy: Path Traversal in Trivy Plugin Manager Allows Arbitrary File Write

> Attackers can write arbitrary files via malicious plugin manifests, potentially leading to code execution or data modification in Trivy.

- **Severity:** Medium 6.8 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 18 Aug 2026
- **Updated:** 18 Aug 2026
- **Also known as:** GHSA-8rc5-4fr6-64pw, GO-2026-6250, MINI-3hq4-6mp3-88v7, MINI-4jjq-qr76-wc58, MINI-676g-m4jh-p2xh, MINI-7gpw-r6jv-p379, MINI-7j7f-3jg7-49pg, MINI-9649-gjxm-rwrv, MINI-98qh-3xf2-gq4h, MINI-9gc7-f2rq-v25f, MINI-f298-hfv6-6rq2, MINI-fp8f-cx55-c57r, MINI-gj78-xp2v-q73q, MINI-h7f6-w427-mgfp, MINI-hx48-5v85-6fv9, MINI-hxf9-pw99-68j6, MINI-j5cq-5g2w-45hg, MINI-j8c9-cgqp-7hh8, MINI-jc2j-6j3m-43xj, MINI-jgc6-rjx6-r4f8, MINI-jgff-577x-hjpw, MINI-mw8v-9hf3-j36r, MINI-pcqw-xp3w-5hr8, MINI-pmvx-w995-qp6q, MINI-ppfh-hw97-gcpp, MINI-rjr6-44xg-gm33, MINI-v859-c8vc-9q57, MINI-w36v-xmhv-rwcg, MINI-wc3c-5mgq-x66m

## What is CVE-2026-63328?

CVE-2026-63328 is a medium-severity path traversal vulnerability in aquasecurity trivy, published on 18 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official 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.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-63328?

3 open source packages ship an affected version, including github.com/aquasecurity/trivy.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/aquasecurity/trivy` | Go | All versions | 0.72.0 |
| `github.com/aquasecurity/trivy` | Go | All versions | 0.72.0 |
| `github.com/aquasecurity/trivy` | Go | All versions | 0.72.0 |

## How do I fix CVE-2026-63328?

Upgrade github.com/aquasecurity/trivy to 0.72.0 or later.

## Is CVE-2026-63328 being exploited?

There is no known exploitation of CVE-2026-63328 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-63328 and fix it if it is affected.

What it is: CVE-2026-63328 is a medium-severity path traversal vulnerability in aquasecurity trivy, published on 18 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-63328 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/aquasecurity/trivy (Go): affected all versions; fixed in 0.72.0
- github.com/aquasecurity/trivy (Go): affected all versions; fixed in 0.72.0
- github.com/aquasecurity/trivy (Go): affected all versions; fixed in 0.72.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-63328/ (Markdown: https://insights.sbomify.com/CVE-2026-63328/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-63328
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-63328
- OSV: https://osv.dev/vulnerability/CVE-2026-63328

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-63328/
Summaries are generated and may contain mistakes; the official description above is the record.
