Symlink Attack Affecting github.com/moby/buildkit/client/llb package, versions <0.28.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.46% (37th percentile)

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-GITHUBCOMMOBYBUILDKITCLIENTLLB-15790742
  • published27 Mar 2026
  • disclosed26 Mar 2026
  • creditUnknown

Introduced: 26 Mar 2026

CVE-2026-33748  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade github.com/moby/buildkit/client/llb to version 0.28.1 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack when processing Git URL fragment subdir components. An attacker can access files outside the intended Git repository root by specifying a crafted subdir value in the URL fragment.

Note:

This is only exploitable if builds use Git URLs with a subpath component and the subdir points to a symlink in an untrusted repository.

Workaround

This vulnerability can be mitigated by avoiding builds from untrusted sources or not using the subdir component from untrusted Git repositories.

CVSS Base Scores

version 4.0
version 3.1