CVE-2026-25121: apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base

Published Feb 3, 2026
·
Updated

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.

Other sources

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.

— MITRE

Affected Software

2 affected componentsFixes available
go/chainguard.dev/apko>=0.14.8<1.1.0
1.1.0
chainguard Apko Go>=0.14.8<1.1.1

Event History

Feb 3, 2026
Advisory Published
via GitHub·11:57 PM
Data Sourced
via GitHub·11:57 PM
DescriptionSeverityWeaknessAffected Software
Feb 4, 2026
CVE Published
via MITRE·07:02 PM
Data Sourced
via MITRE·07:02 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-25121?

CVE-2026-25121 is classified as a high severity vulnerability due to the potential for directory traversal and unauthorized access.

2

How do I fix CVE-2026-25121?

To fix CVE-2026-25121, upgrade to apko version 1.1.0 or later.

3

What systems are affected by CVE-2026-25121?

CVE-2026-25121 affects versions of apko from 0.14.8 up to 1.1.0.

4

What kind of attack does CVE-2026-25121 enable?

CVE-2026-25121 enables attackers to create directories or symlinks outside the intended installation root using a malicious APK.

5

Can CVE-2026-25121 affect my application security?

Yes, CVE-2026-25121 can compromise application security by allowing unauthorized file system access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203