CVE-2026-42574 PUBLISHED

apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root

Assigner: GitHub_M
Reserved: 28.04.2026 Published: 09.05.2026 Updated: 09.05.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS Score: 7.5

Product Status

Vendor chainguard-dev
Product apko
Versions
  • Version >= 0.14.8, < 1.2.5 is affected

References

Problem Types

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE
  • CWE-59: Improper Link Resolution Before File Access ('Link Following') CWE