CVE-2026-25121CWE-23

apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base

High · published February 4, 2026

CVSS v3.1
7.5
EPSS
0%
Percentile
35.2
In the wild
Unconfirmed
What it is

⚡ A path traversal vulnerability in apko could let attackers create directories beyond the intended installation root — think of it as a sneaky delivery driver dropping packages at the wrong address! 📦 Imagine a delivery service that misreads addresses. Instead of dropping packages at your home, they start leaving them in your neighbor's garden, creating a mess that can lead to chaos. That's what this vulnerability does — it allows malicious APK packages to create files and symlinks in unintended locations. This could lead to an attacker manipulating files and directories outside of the expected area, potentially compromising your environment. By leveraging this flaw, an attacker might gain access to sensitive areas of the filesystem, leading to data leaks or unauthorized access.

Put simply

Imagine a delivery service that misreads addresses. Instead of dropping packages at your home, they start leaving them in your neighbor's garden, creating a mess that can lead to chaos. That's what this vulnerability does — it allows malicious APK packages to create files and symlinks in unintended locations. The vulnerability arises from the dirFS filesystem abstraction in apko, where functions like MkdirAll and Symlink do not validate paths properly. This allows crafted APK packages to escape the confines of the intended directory structure, leading to unintended file system changes.

What to do

This could lead to an attacker manipulating files and directories outside of the expected area, potentially compromising your environment. By leveraging this flaw, an attacker might gain access to sensitive areas of the filesystem, leading to data leaks or unauthorized access. To protect yourself, upgrade to apko version 1.1.1 or later immediately. Additionally, always validate packages from your repositories to ensure you’re not accepting compromised or typosquatted APKs into your build process. Review your repository settings to bolster security! You've got this! With a quick update, you can lock down your environment and maintain your superhero status! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00419 · 35.2th percentile
Weakness
CWE-23 · Relative Path Traversal
Published
2026-02-04T19:02Z
EPSS history
Timeline
  • 04 FEB 19:02Z
    apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base
    cvelistv5