Vulnerabilities in pkg:golang/github.com/aquasecurity/trivy
PACKAGECVE-2026-55092 is a HIGH (CVSS 7.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Github.com/aquasecurity/trivy libraries in the Go ecosystem. The issue involves trivy has a path traversal via a crafted vulnerability database or other downloaded artifacts. Remediation is available by upgrading affected packages to version 0.71.1.
pkg:golang/github.com/aquasecurity/trivy
Vulnerability advisories affecting package pkg:golang/github.com/aquasecurity/trivy. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-mcj4-mphf-j9ff | CVE-2026-55092 | HIGH | Trivy has a path traversal via a crafted vulnerability database or other downloaded artifacts |
| GHSA-8rc5-4fr6-64pw | CVE-2026-63328 | MODERATE | Trivy Plugin Manager has Path Traversal that Allows Arbitrary File Write |
| GHSA-q3fv-x8vg-qqm4 | CVE-2026-54448 | HIGH | Trivy: Helm chart tar bomb causes OOM via unbounded io.ReadAll in parser |
| GHSA-69fq-xp46-6x23 | CVE-2026-33634 | CRITICAL | Trivy ecosystem supply chain was briefly compromised |
| GHSA-xcq4-m2r3-cmrj | CVE-2024-35192 | MODERATE | Trivy possibly leaks registry credential when scanning images from malicious registries |
CVE-2026-55092 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-55092
To remediate this vulnerability, upgrade all affected Github.com/aquasecurity/trivy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/aquasecurity/trivy to 0.71.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/aquasecurity/trivy
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-55092, inspect your project dependencies for Github.com/aquasecurity/trivy:
inspect dependencies for github.com/aquasecurity/trivy
Analyze the terminal output to locate any version of Github.com/aquasecurity/trivy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.71.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Github.com/aquasecurity/trivy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-55092 Affected Github.com/aquasecurity/trivy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/aquasecurity/trivy
|
Go |
< 0.71.1
|
0.71.1
|
References
Frequently Asked Questions
What is CVE-2026-55092?
Which Github.com/aquasecurity/trivy versions are affected?
What version fixes CVE-2026-55092?
Is github.com/aquasecurity/trivy affected?
What is the CVSS score of CVE-2026-55092?
What CWE is associated with CVE-2026-55092?
How can I check Go dependencies for CVE-2026-55092?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mcj4-mphf-j9ff",
"modified" : "2026-08-25T17:33:02Z",
"published" : "2026-08-25T17:33:02Z",
"aliases" : [ "CVE-2026-55092" ],
"summary" : "Trivy has a path traversal via a crafted vulnerability database or other downloaded artifacts",
"details" : "## Summary\n\nWhen Trivy downloads an OCI artifact, it uses the `org.opencontainers.image.title` annotation from the artifact manifest as the destination filename without validation. An attacker who can make Trivy fetch an attacker-controlled artifact can supply a crafted annotation that resolves to a path outside the intended destination, causing Trivy to write the layer content to an arbitrary location on the host filesystem.\n\n## Affected configurations\n\nExploitation requires the attacker to direct Trivy at an attacker-controlled OCI artifact via one of the following inputs:\n\n| Input | Used for |\n| --- | --- |\n| `--db-repository` flag, `TRIVY_DB_REPOSITORY` environment variable, or `db.repository` in `trivy.yaml` | Vulnerability database |\n| `--java-db-repository` flag, `TRIVY_JAVA_DB_REPOSITORY` environment variable, or `db.java-repository` in `trivy.yaml` | Java vulnerability database |\n| `--checks-bundle-repository` flag (and the deprecated `--policy-bundle-repository` alias), `TRIVY_CHECKS_BUNDLE_REPOSITORY` environment variable, or `misconfiguration.checks-bundle-repository` in `trivy.yaml` | Misconfiguration checks bundle |\n| Repository argument to `trivy module install <REPO>` | WASM module installation |\n\nRealistic scenarios in which an attacker may influence these inputs include a copy-pasted command or documentation snippet pointing to an untrusted mirror, or a third-party mirror that turns out to be hostile.\n\nTrivy's default configuration, which downloads these artifacts from Aqua-operated repositories, is not affected. The risk applies only when one of the inputs above is overridden to download a different artifact.\n\n## Impact\n\nAn attacker who satisfies the conditions above can overwrite or create arbitrary files on the host filesystem within the privilege boundary of the user running Trivy. The vulnerability does not grant any privileges beyond what that user already has.\n\nThe practical impact depends on the deployment. In environments where the running user can overwrite files such as SSH `authorized_keys`, shell startup files, cron entries, or binaries on `PATH`, the file write may be leveraged to achieve code execution as that user. In more restricted deployments, the impact is bounded to the user's writable scope but may still allow tampering with scan results, build artifacts, or other files consumed by subsequent steps in the same pipeline.\n\n## Patches\n\nFixed in Trivy `0.71.1`. Users should upgrade to that release or later.\n\n## Workarounds\n\nIf upgrading is not immediately possible, do not download Trivy artifacts (vulnerability database, Java database, misconfiguration checks bundle, modules, etc.) from OCI repositories you do not operate or trust.\n\n## Credits\n\nReported by @ikkebr.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aquasecurity/trivy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.71.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aquasecurity/trivy/security/advisories/GHSA-mcj4-mphf-j9ff"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-55092"
}, {
"type" : "WEB",
"url" : "https://github.com/aquasecurity/trivy/commit/39e0b132260c60d59fa746c3f6dd10374b0ff6e4"
}, {
"type" : "WEB",
"url" : "https://github.com/aquasecurity/trivy/commit/a72d9a4d997c25fbb6534e231b4e206c9b202b31"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aquasecurity/trivy"
}, {
"type" : "WEB",
"url" : "https://github.com/aquasecurity/trivy/releases/tag/v0.71.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-25T17:33:02Z",
"nvd_published_at" : "2026-06-25T17:16:41Z"
}
}