Skip to main content
VulnerabilityPublished

CVE-2026-33748: moby buildkit · Path Traversal

Affects moby buildkitSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.2 High : upgrade to 0.28.1 soon.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 4.0 base score
8.2High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.28.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade buildkit and moby/buildkit to 0.28.1.

Affected software

ProductAffectedFixed in
mobybuildkitAffected
  • <0.28.1
Fixed in
  • 0.28.1
GitHubmoby/buildkitpkg:github/moby/buildkitOther threatsAffected
  • <0.28.1
Fixed in
  • 0.28.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Upgrade moby buildkit to version 0.28.1 or later immediately to apply the official patch.
  2. Until patched, avoid building Dockerfiles from untrusted Git repositories or those using Git URLs with subdirectory fragments.
  3. Implement strict validation and sanitization of Git URL inputs in build pipelines to reject URLs containing subpath components or symlinks.
  4. Use container build environments with minimal filesystem access and isolate build hosts to limit exposure of sensitive files.
  5. Employ runtime monitoring to detect unusual file access patterns during builds.
  6. Review and restrict permissions on build host filesystems to minimize sensitive data accessible to build processes.
  7. Incorporate security scanning tools that detect usage of vulnerable buildkit versions and risky Git URL patterns in CI/CD workflows.
  8. Educate developers and DevOps teams about risks of using untrusted sources and subdirectory components in builds.

Description

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Prior to version 0.28.1, insufficient validation of Git URL fragment subdir components may allow access to files outside the checked-out Git repository root. Possible access is limited to files on the same mounted filesystem. The issue has been fixed in version v0.28.1 The issue affects only builds that use Git URLs with a subpath component. As a workaround, avoid building Dockerfiles from untrusted sources or using the subdir component from an untrusted Git repository where the subdir component could point to a symlink.

References

Community reviews

Loading reviews…