{"id":"CVE-2026-25121","published":"2026-02-04T19:02:17Z","modified":"2026-02-04T19:18:52Z","title":"apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base","vendor":"chainguard-dev","product":"apko","tier":"tail","description":{"text":"apko allows users to build and publish OCI container images built from apk packages. From version 0.14.8 to before 1.1.1, a path traversal vulnerability was discovered in apko's dirFS filesystem abstraction. An attacker who can supply a malicious APK package (e.g., via a compromised or typosquatted repository) could create directories or symlinks outside the intended installation root. The MkdirAll, Mkdir, and Symlink methods in pkg/apk/fs/rwosfs.go use filepath.Join() without validating that the resulting path stays within the base directory. This issue has been patched in version 1.1.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00413,"percentile":0.36481,"provenance":"source"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14","tags":["x_refsource_MISC"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":7.3},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"chainguard-dev","affectedVersions":[{"vendor":"chainguard-dev","product":"apko","versions":[">= 0.14.8, < 1.1.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-04T19:18:20.797586Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"chainguard.dev/apko","vulnerableRanges":[">=0.14.8, <1.1.0"],"patched":["1.1.0"],"from":["GHSA-5g94-c2wx-8pxw","GO-2026-4405"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal in the dirFS filesystem abstraction of apko, a tool for building and publishing OCI container images from apk packages, specifically in the MkdirAll, Mkdir, and Symlink methods of its read-write filesystem code, which join paths without checking that they remain inside the base directory. An attacker who can supply a malicious APK package, for example through a compromised or typosquatted repository, can create directories or symlinks outside the intended installation root over the network with no privileges or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:22Z"},"euvd":{"id":"EUVD-2026-5380","exploited":false,"provenance":"source"}}