{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-25121","id":"CVE-2026-25121","title":"apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base","description":"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 MkdirAl","descriptionLong":"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.","published":"2026-02-04T19:02:17.979Z","updated":"2026-10-28T02:30:52.941742189Z","reserved":"2026-01-29T14:03:42.539Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["chainguard-dev apko"],"affectedProducts":[{"vendor":"chainguard-dev","product":"apko","defaultStatus":null,"versions":[{"version":">= 0.14.8, < 1.1.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"chainguard.dev/apko","purl":"pkg:golang/chainguard.dev/apko","ranges":[">=0.14.8 <1.1.0"],"fixed":["1.1.0"],"advisory":"GHSA-5g94-c2wx-8pxw"}],"cwes":["CWE-23","CWE-22"],"aliases":["GHSA-5g94-c2wx-8pxw","GO-2026-4405"],"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxw","tags":["x_refsource_CONFIRM","Third Party Advisory","advisory","web"]},{"url":"https://github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25121.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25121","tags":["advisory"]},{"url":"https://github.com/chainguard-dev/apko","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00413,"epssPercentile":0.36344,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-25121","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25121","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-25121","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5g94-c2wx-8pxw","ok":true,"note":"GHSA-5g94-c2wx-8pxw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-25121","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}