{"answers":{"affected":"3 open source packages ship an affected version, including github.com/moby/buildkit. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-33747 in the wild and no public exploit code.","fix":"Upgrade github.com/moby/buildkit to 0.28.1 or later.","what":"CVE-2026-33747 is a high-severity path traversal vulnerability in moby buildkit, published on 27 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-33747 and fix it if it is affected.\n\nWhat it is: CVE-2026-33747 is a high-severity path traversal vulnerability in moby buildkit, published on 27 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-33747 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/moby/buildkit (Go): affected all versions; fixed in 0.28.1\n- github.com/moby/buildkit (Go): affected all versions; fixed in 0.28.1\n- github.com/moby/buildkit (Go): affected all versions; fixed in 0.28.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-33747/ (Markdown: https://insights.sbomify.com/CVE-2026-33747/index.md)","id":"CVE-2026-33747","markdown":"https://insights.sbomify.com/CVE-2026-33747/index.md","name":"CVE-2026-33747","record":{"aliases":["BELL-CVE-2026-33747","CLEANSTART-2026-DU09908","CLEANSTART-2026-IP63543","CLEANSTART-2026-QH82064","CLEANSTART-2026-TB67127","DEBIAN-CVE-2026-33747","ECHO-32a1-300a-79e3","GHSA-4c29-8rgm-jvjj","GO-2026-4858","MINI-2mhv-9v7r-mmv4","MINI-2rpf-jgj3-hq7f","MINI-3482-48j6-xmjr","MINI-427q-22x5-mfwm","MINI-5ghw-q47f-7qr9","MINI-67p4-ph8f-rvr3","MINI-7cpr-g2r5-rgrh","MINI-f5p9-jm3h-548x","MINI-f8x5-56mj-xwwv","MINI-fjrv-387j-xgw9","MINI-h8hm-4mx3-7wvx","MINI-j6rw-fvvw-hjq8","MINI-m27m-qj45-53qg","MINI-m72g-wjgp-gx9m","MINI-m8wj-h3vw-7vxh","MINI-mhhw-pj25-38h5","MINI-mp4m-q48h-p7vc","MINI-mw6c-cjq6-hpmf","MINI-mxff-76fc-3x3p","MINI-pqjc-6w4f-wm73","MINI-qm96-2mqx-8rgc","MINI-rm77-6g6f-mfv3","MINI-v9fm-7376-2r46","MINI-vc69-rjh8-9wcv","MINI-vq7v-4pw9-cww8","ROOT-APP-GOBINARY-CVE-2026-33747","UBUNTU-CVE-2026-33747","USN-8230-1","openSUSE-SU-2026:10456-1","openSUSE-SU-2026:10472-1"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"BuildKit build toolkit","requires_auth":"none","summary":"A malicious BuildKit frontend can write files outside the storage root, requiring the use of untrusted custom frontends.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"buildkit","vendor":"mobyproject"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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, when using a custom BuildKit frontend, the frontend can craft an API message that causes files to be written outside of the BuildKit state directory for the execution context. The issue has been fixed in v0.28.1. The vulnerability requires using an untrusted BuildKit frontend set with `#syntax` or `--build-arg BUILDKIT_SYNTAX`. Using these options with a well-known frontend image like `docker/dockerfile` is not affected.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"BuildKit vulnerable to malicious frontend causing file escape outside of storage root","id":"CVE-2026-33747","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":5,"n_references":2,"next":{"headline":"BuildKit Git URL subdir component can cause access to restricted files","id":"CVE-2026-33748"},"packages":[{"ecosystem":"Go","fixed":["0.28.1"],"introduced":["0"],"last_affected":[],"package":"github.com/moby/buildkit","purl":null,"source":"GHSA-4c29-8rgm-jvjj"},{"ecosystem":"Go","fixed":["0.28.1"],"introduced":["0"],"last_affected":[],"package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"GHSA-4c29-8rgm-jvjj"},{"ecosystem":"Go","fixed":["0.28.1"],"introduced":["0"],"last_affected":[],"package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"GO-2026-4858"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.67.1-2.1"],"introduced":["0"],"last_affected":[],"package":"conftest","purl":"pkg:rpm/opensuse/conftest\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10472-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.96.4-1.1"],"introduced":["0"],"last_affected":[],"package":"tailscale","purl":"pkg:rpm/opensuse/tailscale\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10456-1"}],"prev":{"headline":"Convoy: JWT Signature Verification Bypass Allows Authentication as Arbitrary Users","id":"CVE-2026-33746"},"products":["buildkit"],"published":"2026-03-27","related":[{"cvss_score":10,"headline":"BuildKit possible host system access from mount stub cleaner","id":"CVE-2024-23652","kev_date_added":null,"published":"2024-01-31"},{"cvss_score":9.8,"headline":"BuildKit interactive containers API does not validate entitlements check","id":"CVE-2024-23653","kev_date_added":null,"published":"2024-01-31"},{"cvss_score":8.7,"headline":"BuildKit possible race condition with accessing subpaths from cache mounts","id":"CVE-2024-23651","kev_date_added":null,"published":"2024-01-31"},{"cvss_score":8.2,"headline":"BuildKit Git URL subdir component can cause access to restricted files","id":"CVE-2026-33748","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":6.9,"headline":"Malicious client can bypass destination directory validation on local sources upload","id":"CVE-2026-15789","kev_date_added":null,"published":"2026-07-21"},{"cvss_score":6.5,"headline":"Git source checkout from a bundle file could lead to command injection","id":"CVE-2026-15793","kev_date_added":null,"published":"2026-07-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-27","vendors":["moby"]},"summary":"A malicious BuildKit frontend can write files outside the storage root, requiring the use of untrusted custom frontends.","url":"https://insights.sbomify.com/CVE-2026-33747/"}