{"id":"CVE-2026-42574","published":"2026-05-09T19:24:48Z","modified":"2026-05-11T17:11:40Z","title":"apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root","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 version 1.2.5, a crafted .apk could install a TypeSymlink tar entry whose target pointed outside the build root, and a subsequent directory-creation or file-write entry in the same or later archive could traverse that symlink to reach host paths the build user could write to. This issue has been patched in version 1.2.5.","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.00352,"percentile":0.29666,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-qq3r-w4hj-gjp6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chainguard-dev/apko/pull/2187","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/apko/commit/f5a96e1299ac81c7ea9441705ec467688086f442","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/apko/releases/tag/v1.2.5","tags":["x_refsource_MISC"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":5.93},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"chainguard-dev","affectedVersions":[{"vendor":"chainguard-dev","product":"apko","versions":[">= 0.14.8, < 1.2.5"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-11T17:09:56.626237Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"chainguard.dev/apko","vulnerableRanges":[">=0.14.8, <1.2.5"],"patched":["1.2.5"],"from":["GHSA-qq3r-w4hj-gjp6","GO-2026-5589"],"provenance":"source"}],"summary":{"text":"apko's dirFS, the directory-filesystem component used when assembling apk packages into OCI images, fails to stop symlinks from pointing outside the build root, allowing path traversal. A crafted .apk containing a symlink entry whose target lies outside the build root, followed by a directory-creation or file-write entry in the same or a later archive, can reach host paths writable by the build user, and no authentication or user interaction is required beyond supplying the malicious package to a vulnerable apko version.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:59Z"},"euvd":{"id":"EUVD-2026-28932","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-25121","published":"2026-02-04","fixed":"1.1.0","kev":false},{"cve":"CVE-2026-25122","published":"2026-02-04","fixed":"1.1.0","kev":false},{"cve":"CVE-2026-25140","published":"2026-02-04","fixed":"1.1.1","kev":false,"link":{"from":"CVE-2026-25140","to":"CVE-2026-42574","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:chainguard.dev/apko","fromFixed":"1.1.1","toFixed":"1.2.5","daysApart":94}]}},{"cve":"CVE-2026-42574","published":"2026-05-09","fixed":"1.2.5","kev":false},{"cve":"CVE-2026-42575","published":"2026-05-09","fixed":"1.2.7","kev":false,"link":{"from":"CVE-2026-42574","to":"CVE-2026-42575","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:chainguard.dev/apko","fromFixed":"1.2.5","toFixed":"1.2.7","daysApart":0}]}},{"cve":"CVE-2026-42576","published":"2026-05-09","fixed":"1.2.7","kev":false,"link":{"from":"CVE-2026-42574","to":"CVE-2026-42576","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:chainguard.dev/apko","fromFixed":"1.2.5","toFixed":"1.2.7","daysApart":0}]}},{"cve":"CVE-2026-54174","published":"2026-09-11","fixed":"1.2.9","kev":false}],"package":"Go:chainguard.dev/apko"}}