Symlink Attack Affecting chainguard.dev/apko/pkg/apk/fs package, versions >=0.14.8 <1.2.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Symlink Attack vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-CHAINGUARDDEVAPKOPKGAPKFS-16419397
  • published6 May 2026
  • disclosed4 May 2026
  • credit1seal

Introduced: 4 May 2026

NewCVE-2026-42574  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade chainguard.dev/apko/pkg/apk/fs to version 1.2.5 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack through the DirFS process. An attacker can gain unauthorized access to files outside the intended build root by crafting a malicious archive containing a symlink entry that points outside the build root, followed by directory creation or file write operations that traverse the symlink.

CVSS Base Scores

version 4.0
version 3.1