GHSA-5g94-c2wx-8pxw

Suggest an improvement
Source
https://github.com/advisories/GHSA-5g94-c2wx-8pxw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-5g94-c2wx-8pxw/GHSA-5g94-c2wx-8pxw.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-5g94-c2wx-8pxw
Aliases
Downstream
CGA (16)
MINI (1)
Published
2026-02-03T23:57:48Z
Modified
2026-07-17T21:09:02Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
apko has a path traversal in apko dirFS which allows filesystem writes outside base
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-22",
        "CWE-23"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-02-03T23:57:48Z",
    "nvd_published_at":  "2026-02-04T19:16:14Z",
    "severity":  "HIGH"
}
References

Affected packages

Go / chainguard.dev/apko

Package

Name
chainguard.dev/apko
View open source insights on deps.dev
Purl
pkg:golang/chainguard.dev/apko

Affected ranges

Type
SEMVER
Events
Introduced
0.14.8
Fixed
1.1.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-5g94-c2wx-8pxw/GHSA-5g94-c2wx-8pxw.json"