# CVE-2026-42574: apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 37% of CVEs (2026-11-30)
- Published: 2026-05-04T21:26:47.000Z
- Modified: 2026-09-10T03:51:06.920Z
- Also known as: GHSA-qq3r-w4hj-gjp6, GO-2026-5589
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- chainguard-dev apko: >= 0.14.8, < 1.2.5
- chainguard.dev/apko (Go): from 0.14.8 before 1.2.5

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/chainguard-dev/apko/security/advisories/GHSA-qq3r-w4hj-gjp6> (advisory, web)
- <https://github.com/chainguard-dev/apko/pull/2187> (web)
- <https://github.com/chainguard-dev/apko/commit/f5a96e1299ac81c7ea9441705ec467688086f442> (web)
- <https://github.com/chainguard-dev/apko/releases/tag/v1.2.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42574> (advisory)
- <https://github.com/chainguard-dev/apko> (package)

## Sources

- CVE List: [CVE-2026-42574](https://www.cve.org/CVERecord?id=CVE-2026-42574), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-qq3r-w4hj-gjp6](https://github.com/advisories/GHSA-qq3r-w4hj-gjp6), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5589](https://pkg.go.dev/vuln/GO-2026-5589), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-42574](https://nvd.nist.gov/vuln/detail/CVE-2026-42574), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-42574 · Whole record: https://cve.day/CVE-2026-42574.json · Rebuilt by cve.day 2026-11-25T22:59:21.153Z
