apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| chainguard-dev | apko | affected |
|
No data.
| Vendor | Product | Versions |
|---|---|---|
| Chainguard-dev | Apko | — |
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-5g94-c2wx-8pxw | apko has a path traversal in apko dirFS which allows filesystem writes outside base |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.413% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Chainguard
Chainguard apko |
|
| Weaknesses | CWE-22 | |
| CPEs | cpe:2.3:a:chainguard:apko:*:*:*:*:*:go:*:* | |
| Vendors & Products |
Chainguard
Chainguard apko |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Chainguard-dev
Chainguard-dev apko |
|
| Vendors & Products |
Chainguard-dev
Chainguard-dev apko |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base | |
| Weaknesses | CWE-23 | |
| References |
| |
| Metrics |
cvssV3_1
|