CVE-2026-55092: Github.com/aquasecurity/trivy Path Traversal Vulnerability

HIGH
Advisory Identifier: GHSA-mcj4-mphf-j9ff
CVSS 7.5
CWE-22
Published
Advisory Summary

CVE-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.

CVE-2026-55092 at a Glance

CVE Identifier CVE-2026-55092
GHSA Identifier GHSA-mcj4-mphf-j9ff
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Github.com/aquasecurity/trivy
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

github.com/aquasecurity/trivy fixed: 0.71.1
Upgrade github.com/aquasecurity/trivy to 0.71.1
Verify Direct and Transitive Dependencies

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

## Summary When 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. ## Affected configurations Exploitation requires the attacker to direct Trivy at an attacker-controlled OCI artifact via one of the following inputs: | Input | Used for | | --- | --- | | `--db-repository` flag, `TRIVY_DB_REPOSITORY` environment variable, or `db.repository` in `trivy.yaml` | Vulnerability database | | `--java-db-repository` flag, `TRIVY_JAVA_DB_REPOSITORY` environment variable, or `db.java-repository` in `trivy.yaml` | Java vulnerability database | | `--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 | | Repository argument to `trivy module install <REPO>` | WASM module installation | Realistic 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. Trivy'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. ## Impact An 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. The 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. ## Patches Fixed in Trivy `0.71.1`. Users should upgrade to that release or later. ## Workarounds If 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. ## Credits Reported by @ikkebr.

CVE-2026-55092 Affected Github.com/aquasecurity/trivy Versions

1 component(s)
Fixed Versions:
0.71.1
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?
CVE-2026-55092 is a security vulnerability in Github.com/aquasecurity/trivy involving Trivy has a path traversal via a crafted vulnerability database or other downloaded artifacts under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Github.com/aquasecurity/trivy versions are affected?
Affected versions include releases prior to 0.71.1 across affected packages: github.com/aquasecurity/trivy.
What version fixes CVE-2026-55092?
Upgrading to 0.71.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/aquasecurity/trivy affected?
Yes, github.com/aquasecurity/trivy is affected in releases prior to 0.71.1. Upgrade your dependency to 0.71.1 or later.
What is the CVSS score of CVE-2026-55092?
CVE-2026-55092 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2026-55092?
CVE-2026-55092 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check Go dependencies for CVE-2026-55092?
Run the dependency tree command: 'inspect dependencies for github.com/aquasecurity/trivy'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}