{"schemaVersion":4,"id":"CVE-2026-121542","aliases":["DEBIAN-CVE-2026-121542","UBUNTU-CVE-2026-121542"],"status":"published","duplicateOf":null,"title":"Bake filesystem path entitlements approval can be skipped for path using basename prefix","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.","dates":{"published":"2026-11-03T21:59:06.193Z","modified":"2026-11-04T18:20:22.776Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":1.8,"severity":"low","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":1.8,"severity":"low","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":1.8,"severity":"low","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":1.8,"severity":"low","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":1.8,"severity":"low","vector":"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","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":0.0019,"percentile":0.09104,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.04500000000000001,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00145},"history":[{"date":"2026-11-04T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0019,"percentile":0.09104}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00145,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0019,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0019,"percentile":0.09104}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"debian","product":"docker-buildx","name":"docker-buildx","label":"docker-buildx","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/docker-buildx","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"docker.io","name":"docker.io","label":"docker.io","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/docker.io","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"docker.io-app","name":"docker.io-app","label":"docker.io-app","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/docker.io-app","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"docker","product":"docker buildx","name":"Docker Buildx","label":"docker buildx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.19.0, < 0.38.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.19.0","startInclusive":true,"end":"0.38.1","endInclusive":false}}],"versionsText":"≥ 0.19.0, < 0.38.1","eol":null,"hubHref":"/vendor/docker/docker_buildx"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/docker/buildx/security/advisories/GHSA-rghq-x9hf-hc3r","label":"github.com/docker/buildx/security/advisories/GHSA-rghq-x9hf-hc3r","hostname":"github.com","tags":["Vendor Advisory","REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-121542","label":"security-tracker.debian.org/tracker/CVE-2026-121542","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-121542","label":"ubuntu.com/security/CVE-2026-121542","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-121542","label":"www.cve.org/CVERecord?id=CVE-2026-121542","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-03T21:59:06.193Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-04T18:20:22.776Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 1.8, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,18],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.0019,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-04T18:20:22.776Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":1.8,"vector":"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","version":"4.0","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-04T18:20:22.776Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":1.8,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"osv_debian","date":"2026-11-04T18:20:22.776Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":1.8,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-04T18:20:22.776Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":1.8,"vector":"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","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-11-04T15:15:07.768Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.0019,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T05:06:21.713Z","stale":false,"partial":false}}