SecurityContext

CVE-2026-25121: apko - Path Traversal

  • Cve: CVE-2026-25121
  • Name: apko - Path Traversal
  • 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.
  • Impact: Attackers can create or link files outside intended directories, potentially compromising system integrity or security.
  • Remediation: Update to version 1.1.1 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00413
  • Epss percentile: 0.36363
  • Assignee: [email protected]
  • Published at: 2026-02-04T19:16:14Z
  • Age in days: 293
  • Modified at: 2026-06-17T10:24:08Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-25121
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-23Relative Path Traversal
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

UrlSourceTags
https://github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14nvdPatch
https://github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxwnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
chainguard:apko>= 0.14.8, < 1.1.1nonvd/v1/products/chainguard/apko

Projects

RepositoryLink kindsIndexedUrl
chainguard-dev/apkocommit, fix, package, security_advisoryyes/v1/repositories/chainguard-dev/apko

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts