{"schema_version":"1.7.3","id":"GHSA-5g94-c2wx-8pxw","published":"2026-02-03T23:57:48Z","modified":"2026-02-23T23:43:50.595980Z","aliases":["CVE-2026-25121","GO-2026-4405"],"related":["CGA-8rrf-mq5r-w436"],"summary":"apko has a path traversal in apko dirFS which allows filesystem writes outside base","details":"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.\n\n**Fix:** Fixed by [d8b7887](https://github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14). Merged into release. \n\n**Acknowledgements**                                                                                                                                                                        \n                                                                                                                                                                                              \napko thanks Oleh Konko from [1seal](https://1seal.org/) for discovering and reporting this issue.","affected":[{"package":{"name":"chainguard.dev/apko","ecosystem":"Go","purl":"pkg:golang/chainguard.dev/apko"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.14.8"},{"fixed":"1.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-5g94-c2wx-8pxw/GHSA-5g94-c2wx-8pxw.json"}}],"references":[{"type":"WEB","url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25121"},{"type":"WEB","url":"https://github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14"},{"type":"PACKAGE","url":"https://github.com/chainguard-dev/apko"}],"database_specific":{"cwe_ids":["CWE-22","CWE-23"],"github_reviewed":true,"github_reviewed_at":"2026-02-03T23:57:48Z","nvd_published_at":"2026-02-04T19:16:14Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}