{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-15789 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-15789 is a medium-severity path traversal vulnerability in moby BuildKit, published on 21 Jul 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-15789 and fix it if it is affected.\n\nWhat it is: CVE-2026-15789 is a medium-severity path traversal vulnerability in moby BuildKit, published on 21 Jul 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-15789 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-15789/ (Markdown: https://insights.sbomify.com/CVE-2026-15789/index.md)","id":"CVE-2026-15789","markdown":"https://insights.sbomify.com/CVE-2026-15789/index.md","name":"CVE-2026-15789","record":{"aliases":["RHSA-2026:62771"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"BuildKit container builder","requires_auth":"low_privilege","summary":"A malicious client with API access can bypass directory validation to read or modify files outside the BuildKit state directory.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Docker","cpe":[{"product":"buildkit","vendor":"mobyproject"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/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 custom client can produce such an upload request to the BuildKit daemon that files can escape from the BuildKit-controlled state directory. The client needs to have valid permissions to access the BuildKit control API to issue builds, e.g., bypass authentication, etc.","ecosystems":["Red Hat:hummingbird:1"],"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":"Malicious client can bypass destination directory validation on local sources upload","id":"CVE-2026-15789","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":5,"n_references":1,"next":{"headline":"Cross-site scripting in Video Gallery – YouTube Gallery, Playlist \u0026 Video Grid","id":"CVE-2026-15790"},"packages":[{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:6.0.2-2.3.hum1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/redhat/podman","source":"RHSA-2026:62771"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:6.0.2-2.3.hum1"],"introduced":["0"],"last_affected":[],"package":"podman-docker","purl":"pkg:rpm/redhat/podman-docker","source":"RHSA-2026:62771"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:6.0.2-2.3.hum1"],"introduced":["0"],"last_affected":[],"package":"podman-machine","purl":"pkg:rpm/redhat/podman-machine","source":"RHSA-2026:62771"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:6.0.2-2.3.hum1"],"introduced":["0"],"last_affected":[],"package":"podman-remote","purl":"pkg:rpm/redhat/podman-remote","source":"RHSA-2026:62771"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:6.0.2-2.3.hum1"],"introduced":["0"],"last_affected":[],"package":"podmansh","purl":"pkg:rpm/redhat/podmansh","source":"RHSA-2026:62771"}],"prev":{"headline":"WCOW cache mount source selector resolves NTFS junctions outside of cache root","id":"CVE-2026-15788"},"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.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":"Red Hat","prefix":"RHSA"},{"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":"A malicious client with API access can bypass directory validation to read or modify files outside the BuildKit state directory.","url":"https://insights.sbomify.com/CVE-2026-15789/"}