{"id":"GHSA-5g94-c2wx-8pxw","revision":"461d5c73455a43a4a0005e23c5937886","records":[{"revision":"461d5c73455a43a4a0005e23c5937886","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-5g94-c2wx-8pxw","aliases":["CVE-2026-25121","GO-2026-4405"],"title":"apko has a path traversal in apko dirFS which allows filesystem writes outside base","description":"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.","state":0,"publishedAt":"2026-02-03T23:57:48+00:00","modifiedAt":"2026-09-10T03:50:34.2693427+00:00","affected":[{"ecosystem":"Go","name":"chainguard.dev/apko","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.14.8"},{"kind":"fixed","version":"1.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxw","https://nvd.nist.gov/vuln/detail/CVE-2026-25121","https://github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14","https://github.com/chainguard-dev/apko"],"sourceUrl":"https://github.com/advisories/GHSA-5g94-c2wx-8pxw","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5g94-c2wx-8pxw","identifiers":["GHSA-5g94-c2wx-8pxw","CVE-2026-25121","GO-2026-4405"]},"retained":false,"historicalAffected":[]}],"coverage":[]}