Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-121542— Bake filesystem path entitlements approval can be skipped for path using basename prefix

Quick assessment

Affected
Docker Docker Buildx
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

在 Docker Buildx v0.19.0 至 v0.38.0 版本中,不受信任的 Bake 定义可能在未获得预期的 授权的情况下,泄露 Buildx 客户端可访问的文件。在特定条件下,若文件路径位于与当前工作目录相同的父目录下,且其文件名以当前工作目录的基名(basename)作为前缀,则可能绕过文件系统权限检查。利用此漏洞需要当前项目目录旁存在特定匹配的文件名。运行不受信任的 Bake 定义的用户可能受到影响。该问题已在 v0.38.1 版本中修复。

CVSS 1.8 · Low
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-121542

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Bake filesystem path entitlements approval can be skipped for path using basename prefix
Source: CVE Program / CVE List V5
Vulnerability Description
In Docker Buildx versions v0.19.0 through v0.38.0, an untrusted Bake definition may expose files accessible to the Buildx client without the expected fs.read approval. Under certain conditions, paths under the same parent directory as the current working directory whose names use the working directory's basename as a prefix can skip the filesystem entitlement check. Exploitation requires specific matching filenames next to the current project directory. Users who run untrusted Bake definitions may be affected. The issue is fixed in v0.38.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Docker Docker Buildx 0.19.0 ~ 0.38.1 -

II. Public POCs for CVE-2026-121542

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-121542

请登录查看更多情报信息。

Other References for CVE-2026-121542 (1)

Same Patch Batch · Docker · 2026-11-03 · 6 CVEs total

CVE-2026-112917 9.2 CRITICAL Docker Desktop WSL2 AF_VSOCK isolation bypass via 32-bit socketcall
CVE-2026-103916 8.4 HIGH Docker Sandboxes sbx cp follows workspace symlinks outside the authorized host directory
CVE-2026-93325 7.3 HIGH Bake filesystem entitlement consent is skipped under --progress=rawjson in Docker Buildx
CVE-2026-121614 7.1 HIGH Docker Sandboxes host Git executes repository-controlled programs
CVE-2026-121541 5.6 MEDIUM Bake filesystem path entitlements approval can be skipped in some multi-target builds

IV. Related Vulnerabilities