Chainguard-dev apko
apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
chainguard-dev apko
- >= 0.14.8, < 1.2.5
Fixed in 1.2.5
Mitigation
Upgrade apko to 1.2.5 or later.
References
- Vendor advisory github.com/chainguard-dev/apko/security/adviso…
- Patch github.com/chainguard-dev/apko/pull/2187
- Patch github.com/chainguard-dev/apko/commit/f5a96e12…
1 more
- Release notes github.com/chainguard-dev/apko/releases/tag/v1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.