Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-25121

apko has a path traversal in apko dirFS which allows filesystem writes outside base
Back to all
CVE

CVE-2026-25121

apko has a path traversal in apko dirFS which allows filesystem writes outside base

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.

Fix: Fixed by d8b7887. Merged into release. 

Acknowledgements                                                                                                                                                                        

                                                                                                                                                                                              

apko thanks Oleh Konko from 1seal for discovering and reporting this issue.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.5
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
C
H
U
7.5
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Related Resources

No items found.

References

https://github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxw, https://nvd.nist.gov/vuln/detail/CVE-2026-25121, https://github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14, https://github.com/chainguard-dev/apko

Severity

7.5

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.5
EPSS Probability
0.00075%
EPSS Percentile
0.22285%
Introduced Version
0.14.8,v0.19.3,v0.0.0-20241022221321-4e38dc838f9c,v0.14.8,v0.0.0-20240605174815-f9aa313b98df
Fix Available
1.1.0,v1.1.0,v0.0.0-20260129191720-d8b7887a968a

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading