{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-15791 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-15791 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-15791 is a low-severity path traversal vulnerability in moby BuildKit, published on 21 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-15791 and fix it if it is affected.\n\nWhat it is: CVE-2026-15791 is a low-severity path traversal vulnerability in moby BuildKit, published on 21 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-15791 in the wild and no public exploit code.\n\nAffected product: moby BuildKit. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-15791/ (Markdown: https://insights.sbomify.com/CVE-2026-15791/index.md)","id":"CVE-2026-15791","markdown":"https://insights.sbomify.com/CVE-2026-15791/index.md","name":"CVE-2026-15791","record":{"aliases":["GHSA-32pv-7hq5-qhwq","UBUNTU-CVE-2026-15791"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["data_modify","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"BuildKit build tool","requires_auth":"none","summary":"Attackers can use crafted BuildKit API messages to delete host /tmp contents via path traversal, impacting container infrastructure security.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Docker","cpe":[{"product":"buildkit","vendor":"mobyproject"}],"cvss":{"score":3.3,"severity":"low","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"LLB file operation can be tricked to remove /tmp directory contents","id":"CVE-2026-15791","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Possible panic when incorrect parameters sent from frontend","id":"CVE-2026-15792"},"packages":[],"prev":{"headline":"Cross-site scripting in Video Gallery – YouTube Gallery, Playlist \u0026 Video Grid","id":"CVE-2026-15790"},"products":["BuildKit"],"published":"2026-07-21","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.4,"headline":"BuildKit vulnerable to malicious frontend causing file escape outside of storage root","id":"CVE-2026-33747","kev_date_added":null,"published":"2026-03-27"},{"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":"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":"partial"},"state":"PUBLISHED","updated":"2026-07-21","vendors":["moby"]},"summary":"Attackers can use crafted BuildKit API messages to delete host /tmp contents via path traversal, impacting container infrastructure security.","url":"https://insights.sbomify.com/CVE-2026-15791/"}