{"id":"CVE-2026-15791","state":"PUBLISHED","title":"LLB file operation can be tricked to remove /tmp directory contents","description":"A crafted message in the BuildKit low-level build API can be used to remove the contents of the /tmp directory. The action that can normally be used to delete files inside the build container rootfs can escape into the real host temp directory.","publishedAt":"2026-07-21T16:10:20.881Z","updatedAt":"2026-07-21T17:08:54.555Z","severity":{"score":3.3,"label":"Low","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","source":"Docker"},"assigner":"Docker","products":["moby BuildKit"],"affected":[{"vendor":"moby","product":"BuildKit","defaultStatus":"unaffected","versions":[{"version":"0.10.0","status":"affected","lessThan":"0.31.2","versionType":"semver"}],"platforms":["Linux","MacOS","Windows"]}],"references":["https://github.com/moby/buildkit/security/advisories/GHSA-32pv-7hq5-qhwq"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/15xxx/CVE-2026-15791.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-15791","state":"PUBLISHED","datePublished":"2026-07-21T16:10:20.881Z","dateUpdated":"2026-07-21T17:08:54.555Z","assignerShortName":"Docker","assignerOrgId":"686469e6-3ff6-451b-ab8b-cf5b9e89401e","dateReserved":"2026-07-14T19:30:08.561Z"},"containers":{"cna":{"title":"LLB file operation can be tricked to remove /tmp directory contents","descriptions":[{"lang":"en","value":"A crafted message in the BuildKit low-level build API can be used to remove the contents of the /tmp directory. The action that can normally be used to delete files inside the build container rootfs can escape into the real host temp directory."}],"affected":[{"vendor":"moby","product":"BuildKit","defaultStatus":"unaffected","versions":[{"version":"0.10.0","status":"affected","lessThan":"0.31.2","versionType":"semver"}],"platforms":["Linux","MacOS","Windows"]}],"references":[{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-32pv-7hq5-qhwq","tags":["vendor-advisory"]}],"metrics":[{"cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","baseScore":3.3,"baseSeverity":"LOW","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","exploitMaturity":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Docker","orgId":"686469e6-3ff6-451b-ab8b-cf5b9e89401e","dateUpdated":"2026-07-21T16:10:20.881Z"},"credits":[{"lang":"en","type":"finder","value":"Owais Lone (thesecguy)"}],"impacts":[{"capecId":"CAPEC-126","descriptions":[{"lang":"en","value":"CAPEC-126 Path Traversal"}]}],"source":{"discovery":"EXTERNAL"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"The issue only affects the low-level API and can not be reached when building Dockerfiles. Using a custom BuildKit frontend would be needed to make such a crafted request."}],"value":"The issue only affects the low-level API and can not be reached when building Dockerfiles. Using a custom BuildKit frontend would be needed to make such a crafted request."}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-21T17:08:27.783462Z","id":"CVE-2026-15791","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-21T17:08:54.555Z"}}]}}}