{"id":"CVE-2026-55092","aliases":["CVE-2026-55092","GHSA-mcj4-mphf-j9ff","GO-2026-6294"],"related":["CGA-87j8-vm8f-62rm"],"kind":"vulnerability","state":"published","title":"Trivy: Path traversal via a crafted vulnerability database or other downloaded artifacts","summary":"Trivy is a security scanner. Prior to 0.71.1, 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. This vulnerability is fixed in 0.71.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Trivy is a security scanner. Prior to 0.71.1, 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. This vulnerability is fixed in 0.71.1.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Path traversal via crafted vulnerability database or other downloaded artifacts in github.com/aquasecurity/trivy","format":"markdown","source":"go"},{"lang":"es","text":"Trivy es un escáner de seguridad. Antes de 0.71.1, cuando Trivy descarga un artefacto OCI, utiliza la anotación org.opencontainers.image.title del manifiesto del artefacto como nombre de archivo de destino sin validación. Un atacante que puede hacer que Trivy obtenga un artefacto controlado por el atacante puede proporcionar una anotación manipulada que se resuelve en una ruta fuera del destino previsto, haciendo que Trivy escriba el contenido de la capa en una ubicación arbitraria en el sistema de archivos del host. Esta vulnerabilidad se corrigió en 0.71.1.","source":"nvd"}],"published":"2026-06-25T16:26:46.081Z","modified":"2026-10-25T22:10:00.150Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.71.1","status":"affected"}],"vendor":"aquasecurity","product":"trivy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.71.1"}],"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.71.1"}],"ecosystem":"Go","package":"github.com/aquasecurity/trivy","purl":"pkg:golang/github.com/aquasecurity/trivy","source":"go"},{"ranges":[{"status":"affected","fixed":"0.71.1"}],"vendor":"aquasec","product":"trivy","cpe":"cpe:2.3:a:aquasec:trivy:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/aquasecurity/trivy/security/advisories/GHSA-mcj4-mphf-j9ff","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55092","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/aquasecurity/trivy/commit/39e0b132260c60d59fa746c3f6dd10374b0ff6e4","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/aquasecurity/trivy/commit/a72d9a4d997c25fbb6534e231b4e206c9b202b31","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/aquasecurity/trivy","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/aquasecurity/trivy/releases/tag/v0.71.1","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-26T02:07:47.309Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55092","url":"https://www.cve.org/CVERecord?id=CVE-2026-55092","licence":"CVE Terms of Use","modified":"2026-06-26T02:08:22.309Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mcj4-mphf-j9ff","url":"https://github.com/advisories/GHSA-mcj4-mphf-j9ff","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:14.388Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6294","url":"https://pkg.go.dev/vuln/GO-2026-6294","licence":"CC-BY-4.0","modified":"2026-08-28T04:10:58.187Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55092","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55092","licence":"Public domain","modified":"2026-10-25T22:10:00.150Z"}],"updatedAt":"2026-11-25T22:59:26.388Z","epss":{"score":0.00442,"percentile":0.30328,"date":"2026-11-30T12:00:22.000Z"}}