apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| chainguard-dev | apko | 0.14.8 to before 1.2.5 | 1.2.5 | Patch available | CNA |
| — | chainguard.dev/apko (Go) | 0.14.8 to before 1.2.5 | 1.2.5 | Patch available | GHSA-qq3r-w4hj-gjp6 |
- apko Vendorchainguard-dev Affected 0.14.8 to before 1.2.5 Fixed in 1.2.5 Patch available CNA
- chainguard.dev/apko (Go) Vendor— Affected 0.14.8 to before 1.2.5 Fixed in 1.2.5 Patch available GHSA-qq3r-w4hj-gjp6
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:chainguard:apko:*:*:*:*:*:*:*:* | — | — | chainguard-dev |
- cpe:2.3:a:chainguard:apko:*:*:*:*:*:*:*:* Versions — — ·chainguard-dev
Remediation
- Fix · CNA apko (chainguard-dev) Fixed in 1.2.5
- Fix · GHSA-qq3r-w4hj-gjp6 chainguard.dev/apko (Go) Fixed in 1.2.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-42574
- 2026-10-03 Alias added: GHSA-qq3r-w4hj-gjp6
References
Other 5
- https://github.com/chainguard-dev/apko/security/advisories/GHSA-qq3r-w4hj-gjp6
- https://github.com/chainguard-dev/apko/pull/2187
- https://github.com/chainguard-dev/apko/commit/f5a96e1299ac81c7ea9441705ec467688086f442
- https://github.com/chainguard-dev/apko/releases/tag/v1.2.5
- https://github.com/chainguard-dev/apko
More chainguard-dev vulnerabilities
- TI-2024-23955 apko Exposure of HTTP basic auth credentials in log output CVSS 3.1HIGH 7.5
- TI-2026-22680 kaniko has tar archive path traversal in build context extraction allows writing files outside destination directory CVSS 3.1HIGH 8.2
- TI-2026-83911 kaniko sends Azure access tokens to lookalike ACR registry hosts CVSS 3.1CRITICAL 9.3
- TI-2026-20302 apko affected by potential unbounded resource consumption in expandapk.ExpandApk on attacker-controlled .apk streams CVSS 3.1HIGH 7.5
- TI-2026-20284 apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base CVSS 3.1HIGH 7.5
- TI-2026-20043 melange pipeline working-directory could allow command injection CVSS 3.1HIGH 8.8
Sources
- CVE-2026-42574 · CVE Program
- CVE-2026-42574 · NVD
- FIRST EPSS
- GHSA-qq3r-w4hj-gjp6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences