CVE-2026-42574 apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root
HighCVSS 7.5
EPSS 0.35%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| chainguard.dev/apko(Go) | >= 0.14.8, < 1.2.5 | 1.2.5 | Fixed |
| chainguard-dev apko | = >= 0.14.8, < 1.2.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| chainguard-dev apko | = >= 0.14.8, < 1.2.5 | No fix listed |
| chainguard.dev/apko(Go) | >= 0.14.8, < 1.2.5 | 1.2.5 |
References
- https://github.com/chainguard-dev/apko/security/advisories/GHSA-qq3r-w4hj-gjp6 vendor-advisory
- https://github.com/chainguard-dev/apko/pull/2187 patch
- https://github.com/chainguard-dev/apko/commit/f5a96e1299ac81c7ea9441705ec467688086f442 patch
- https://github.com/chainguard-dev/apko/releases/tag/v1.2.5
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com