p PatchFirst

CVE-2026-121542

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

CVSS 1.8 · Low · EPSS 0.2% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="docker-buildx"'
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="docker.io"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system

Affected products and versions

  • docker buildx

    Versions
    • ≥ 0.19.0, < 0.38.1: Affected (semver)

    Update to 0.38.1

  • docker-buildx Debian 13

    Versions
    • 0.13.1+ds1-3
    • 0.19.3+ds1-1
    • 0.19.3+ds1-2
    • 0.19.3+ds1-3
    • 0.19.3+ds1-4
    • 0.29.1+ds1-1
    All versions (9)
    • 0.29.1+ds1-2
    • 0.29.1+ds1-3
    • 0.29.1+ds1-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker-buildx Debian 14

    Versions
    • 0.13.1+ds1-3
    • 0.19.3+ds1-1
    • 0.19.3+ds1-2
    • 0.19.3+ds1-3
    • 0.19.3+ds1-4
    • 0.29.1+ds1-1
    All versions (9)
    • 0.29.1+ds1-2
    • 0.29.1+ds1-3
    • 0.29.1+ds1-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io Ubuntu Pro 16.04 LTS

    Versions
    • 1.6.2~dfsg1-1ubuntu4
    • 1.10.2-0ubuntu3
    • 1.10.2-0ubuntu4
    • 1.10.3-0ubuntu1
    • 1.10.3-0ubuntu4
    • 1.10.3-0ubuntu5
    All versions (24)
    • 1.10.3-0ubuntu6
    • 1.11.2-0ubuntu5~16.04
    • 1.12.1-0ubuntu13~16.04.1
    • 1.12.3-0ubuntu4~16.04.2
    • 1.12.6-0ubuntu1~16.04.1
    • 1.13.1-0ubuntu1~16.04.2
    • 17.03.2-0ubuntu2~16.04.1
    • 18.06.1-0ubuntu1~16.04.2
    • 18.06.1-0ubuntu1.2~16.04.1
    • 18.09.2-0ubuntu1~16.04.1
    • 18.09.5-0ubuntu1~16.04.2
    • 18.09.7-0ubuntu1~16.04.1
    • 18.09.7-0ubuntu1~16.04.4
    • 18.09.7-0ubuntu1~16.04.5
    • 18.09.7-0ubuntu1~16.04.6
    • 18.09.7-0ubuntu1~16.04.7
    • 18.09.7-0ubuntu1~16.04.9+esm1
    • 18.09.7-0ubuntu1~16.04.9+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io Ubuntu Pro 18.04 LTS

    Versions
    • 1.13.1-0ubuntu6
    • 17.03.2-0ubuntu1
    • 17.03.2-0ubuntu3
    • 17.03.2-0ubuntu5
    • 17.12.1-0ubuntu1
    • 18.06.1-0ubuntu1~18.04.1
    All versions (27)
    • 18.06.1-0ubuntu1.2~18.04.1
    • 18.09.2-0ubuntu1~18.04.1
    • 18.09.5-0ubuntu1~18.04.2
    • 18.09.7-0ubuntu1~18.04.1
    • 18.09.7-0ubuntu1~18.04.3
    • 18.09.7-0ubuntu1~18.04.4
    • 19.03.6-0ubuntu1~18.04.1
    • 19.03.6-0ubuntu1~18.04.2
    • 19.03.6-0ubuntu1~18.04.3
    • 20.10.2-0ubuntu1~18.04.2
    • 20.10.2-0ubuntu1~18.04.3
    • 20.10.7-0ubuntu1~18.04.1
    • 20.10.7-0ubuntu1~18.04.2
    • 20.10.7-0ubuntu5~18.04.2
    • 20.10.7-0ubuntu5~18.04.3
    • 20.10.12-0ubuntu2~18.04.1
    • 20.10.21-0ubuntu1~18.04.2
    • 20.10.21-0ubuntu1~18.04.3
    • 20.10.21-0ubuntu1~18.04.3+esm1
    • 20.10.21-0ubuntu1~18.04.3+esm2
    • 20.10.21-0ubuntu1~18.04.3+esm3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io Ubuntu Pro 20.04 LTS

    Versions
    • 19.03.2-0ubuntu1
    • 19.03.6-0ubuntu1
    • 19.03.8-0ubuntu1
    • 19.03.8-0ubuntu1.20.04
    • 19.03.8-0ubuntu1.20.04.1
    • 19.03.8-0ubuntu1.20.04.2
    All versions (20)
    • 20.10.2-0ubuntu1~20.04.2
    • 20.10.2-0ubuntu1~20.04.3
    • 20.10.7-0ubuntu1~20.04.1
    • 20.10.7-0ubuntu1~20.04.2
    • 20.10.7-0ubuntu5~20.04.1
    • 20.10.7-0ubuntu5~20.04.2
    • 20.10.12-0ubuntu2~20.04.1
    • 20.10.21-0ubuntu1~20.04.1
    • 20.10.21-0ubuntu1~20.04.2
    • 20.10.21-0ubuntu1~20.04.4
    • 20.10.21-0ubuntu1~20.04.5
    • 20.10.21-0ubuntu1~20.04.6
    • 20.10.21-0ubuntu1~20.04.6+esm1
    • 20.10.21-0ubuntu1~20.04.6+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io-app Ubuntu Pro 20.04 LTS

    Versions
    • 20.10.25-0ubuntu1~20.04.1
    • 20.10.25-0ubuntu1~20.04.2
    • 24.0.5-0ubuntu1~20.04.1
    • 24.0.7-0ubuntu2~20.04.1
    • 26.1.3-0ubuntu1~20.04.1
    • 26.1.3-0ubuntu1~20.04.1+esm1
    All versions (7)
    • 26.1.3-0ubuntu1~20.04.1+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io Ubuntu Pro 22.04 LTS

    Versions
    • 20.10.7-0ubuntu5
    • 20.10.7-0ubuntu7
    • 20.10.12-0ubuntu1
    • 20.10.12-0ubuntu2
    • 20.10.12-0ubuntu3
    • 20.10.12-0ubuntu3+gke1.24.1
    All versions (16)
    • 20.10.12-0ubuntu4
    • 20.10.21-0ubuntu1~22.04.2
    • 20.10.21-0ubuntu1~22.04.3
    • 20.10.21-0ubuntu1~22.04.5
    • 20.10.21-0ubuntu1~22.04.6
    • 20.10.21-0ubuntu1~22.04.7
    • 20.10.21-0ubuntu1~22.04.7+esm1
    • 20.10.21-0ubuntu1~22.04.7+esm2
    • 20.10.21-0ubuntu1~22.04.8
    • 20.10.21-0ubuntu1~22.04.8+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io-app Ubuntu Pro 22.04 LTS

    Versions
    • 20.10.25-0ubuntu1~22.04.1
    • 20.10.25-0ubuntu1~22.04.2
    • 24.0.5-0ubuntu1~22.04.1
    • 24.0.7-0ubuntu2~22.04.1
    • 26.1.3-0ubuntu1~22.04.1
    • 26.1.3-0ubuntu1~22.04.1+esm1
    All versions (11)
    • 27.5.1-0ubuntu3~22.04.1
    • 27.5.1-0ubuntu3~22.04.2
    • 28.2.2-0ubuntu1~22.04.1
    • 29.1.3-0ubuntu3~22.04.1
    • 29.1.3-0ubuntu3~22.04.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io Ubuntu Pro 24.04 LTS

    Versions
    • 20.10.24+dfsg1-1ubuntu2
    • 20.10.25+dfsg1-2ubuntu1
    • 20.10.25+dfsg1-2ubuntu1+esm1
    • 20.10.25+dfsg1-2ubuntu1+esm2
    • 20.10.25+dfsg1-2ubuntu1.24.04.1
    • 20.10.25+dfsg1-2ubuntu1.24.04.1+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io-app Ubuntu Pro 24.04 LTS

    Versions
    • 24.0.5-0ubuntu1
    • 24.0.7-0ubuntu1
    • 24.0.7-0ubuntu2
    • 24.0.7-0ubuntu3
    • 24.0.7-0ubuntu4
    • 24.0.7-0ubuntu4.1
    All versions (13)
    • 26.1.3-0ubuntu1~24.04.1
    • 26.1.3-0ubuntu1~24.04.1+esm1
    • 27.5.1-0ubuntu3~24.04.1
    • 27.5.1-0ubuntu3~24.04.2
    • 28.2.2-0ubuntu1~24.04.1
    • 29.1.3-0ubuntu3~24.04.1
    • 29.1.3-0ubuntu3~24.04.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io Ubuntu 26.10

    Versions
    • 27.5.1+dfsg4-2ubuntu1
    • 28.5.2+dfsg4-5ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io-app Ubuntu 26.10

    Versions
    • 29.1.3-0ubuntu4
    • 29.1.3-0ubuntu5
    • 29.1.3-0ubuntu6
    • 29.7.2-0ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io Ubuntu 26.04 LTS

    Versions
    • 26.1.5+dfsg1-9ubuntu1
    • 27.5.1+dfsg4-1ubuntu1
    • 27.5.1+dfsg4-2ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • docker.io-app Ubuntu 26.04 LTS

    Versions
    • 28.2.2-0ubuntu1
    • 29.1.2-0ubuntu1
    • 29.1.3-0ubuntu1
    • 29.1.3-0ubuntu2
    • 29.1.3-0ubuntu3
    • 29.1.3-0ubuntu4
    All versions (7)
    • 29.1.3-0ubuntu4.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →