{
  "id": "CVE-2026-25121",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-25121",
  "published_at": "2026-02-04T19:02:17.979Z",
  "title": "apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base",
  "vendor": "chainguard-dev",
  "product": "apko",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-23",
  "cpes": [
    "cpe:2.3:a:chainguard:apko:*:*:*:*:*:go:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "chainguard-dev",
        "product": "apko",
        "ranges": [
          "\u003e= 0.14.8, \u003c 1.1.1"
        ],
        "fixed_in": [
          "1.1.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade apko to 1.1.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxw"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
