CVE-2026-25121: chainguard-dev apko Relative Path Traversal
Vulnerability summary
CVE-2026-25121 is a high (CVSS 7.5) Relative Path Traversal vulnerability in chainguard-dev apko. EPSS estimates a 0.42% chance of exploitation in the next 30 days, higher than 34.8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 3Timeline
- 04-02-2026PublishedVulnerability first disclosed.
- 04-02-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS trend
Probability
0.42%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
+0.04 pp
From 0.38% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-23Relative Path TraversalThe product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected systems
Chainguard6 products
- amazon-ssm-agent< 3.3.3270.0-r5
- amazon-ssm-agent-ecs-exec< 3.3.3270.0-r5
- cg< 0.2.201-r0
- chainctl< 0.2.206-r0
- dagdotdev< 0.0.20-r6
Chainguard-dev1 product
- apko≥ 0.14.8, < 1.1.1
Chainguard.dev1 product
- apko≥ 0.14.8, < 1.1.0
Wolfi1 product
- dagdotdev< 0.0.20-r6
4 vendors · 9 products
References
5 links- github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxwX Refsource CONFIRMAdvisoryWEBThird Party Advisory
- github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14X Refsource MISCFIXWEBPatch