CVE-2026-25121: chainguard-dev apko · Relative Path Traversal
Affects chainguard-dev apkoSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 1.1.1 soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.1.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade apko and chainguard-dev/apko to 1.1.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| chainguard-devapko | Affected
| Fixed in
|
GitHubchainguard-dev/apkopkg:github/chainguard-dev/apkoOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The primary mitigation is to upgrade all instances of apko to version 1.1.1 or later, where the path traversal vulnerability has been patched with proper path validation. Organizations should implement strict validation and verification of APK package sources, employing cryptographic signatures and trusted repositories to prevent supply chain compromise. Container build pipelines should incorporate scanning tools to detect anomalous filesystem operations or unexpected symlink creations during image builds. Employing runtime security monitoring for containers can help detect suspicious behavior stemming from compromised images. Additionally, adopting a zero-trust approach to supply chain components and enforcing least privilege for build environments reduces the attack surface. Regular security audits and dependency updates are essential to maintain resilience against similar vulnerabilities.
Description
apko allows users to build and publish OCI container images built from apk packages. From version 0.14.8 to before 1.1.1, a path traversal vulnerability was discovered in apko's dirFS filesystem abstraction. An attacker who can supply a malicious APK package (e.g., via a compromised or typosquatted repository) could create directories or symlinks outside the intended installation root. The MkdirAll, Mkdir, and Symlink methods in pkg/apk/fs/rwosfs.go use filepath.Join() without validating that the resulting path stays within the base directory. This issue has been patched in version 1.1.1.