{"answers":{"affected":"3 open source packages ship an affected version, including dulwich.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-52726 exists.","fix":"Upgrade dulwich to 1.2.5 or later.","what":"CVE-2026-52726 is a high-severity path traversal vulnerability in jelmer dulwich, published on 10 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-52726 and fix it if it is affected.\n\nWhat it is: CVE-2026-52726 is a high-severity path traversal vulnerability in jelmer dulwich, published on 10 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-52726 exists.\n\nAffected packages and fixed versions:\n- dulwich (PyPI): affected from 0.23.2; fixed in 1.2.5\n- dulwich (PyPI): affected from 0.23.2; fixed in 1.2.5\n- dulwich (PyPI): affected from 0.23.2; fixed in 1.2.5\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-52726/ (Markdown: https://insights.sbomify.com/CVE-2026-52726/index.md)","id":"CVE-2026-52726","markdown":"https://insights.sbomify.com/CVE-2026-52726/index.md","name":"CVE-2026-52726","record":{"aliases":["CLEANSTART-2026-XF61795","CLSA-2026-1783299701","DEBIAN-CVE-2026-52726","ECHO-fc0e-ca5a-02ac","GHSA-gfhv-vqv2-4544","MINI-ppgj-42ph-g88g","PYSEC-2026-2465","ROOT-APP-PYPI-CVE-2026-52726","UBUNTU-CVE-2026-52726"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python Git library","requires_auth":"none","summary":"Attackers can achieve remote code execution by crafting a repository with malicious submodule paths that write executable hooks into the victim's .git directory.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Dulwich is a pure-Python implementation of the Git file formats and protocols. Starting in version 0.23.2 and prior to version 1.2.5, `dulwich.porcelain.submodule_update`, and by extension `porcelain.clone(..., recurse_submodules=True)`, materializes attacker-controlled submodule paths from a crafted upstream repository without path validation. A malicious `.gitmodules` plus a matching tree gitlink whose `path` is `.git/hooks` (or any other directory inside the parent repository's `.git` directory) causes the attacker's submodule tree contents to be written directly into the victim's `.git/hooks/` directory, preserving executable mode bits. The dropped executables are then run by any subsequent `git` or `dulwich` command that invokes the matching hook, resulting in arbitrary code execution. This is the dulwich equivalent of the upstream Git fixes for CVE-2024-32002 / CVE-2024-32004, which were never propagated into dulwich's separately implemented submodule porcelain. Version 1.2.5 patches the issue.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Dulwich's submodule path traversal in porcelain.submodule_update / porcelain.clone(recurse_submodules=True) yields RCE via attacker-dropped .git/hooks payload","id":"CVE-2026-52726","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"lxc-ci: Pacman keyring stored in archlinux image with a private key","id":"CVE-2026-52727"},"packages":[{"ecosystem":"PyPI","fixed":["1.2.5"],"introduced":["0.23.2"],"last_affected":[],"package":"dulwich","purl":null,"source":"GHSA-gfhv-vqv2-4544"},{"ecosystem":"PyPI","fixed":["1.2.5"],"introduced":["0.23.2"],"last_affected":[],"package":"dulwich","purl":"pkg:pypi/dulwich","source":"GHSA-gfhv-vqv2-4544"},{"ecosystem":"PyPI","fixed":["1.2.5"],"introduced":["0.23.2"],"last_affected":[],"package":"dulwich","purl":"pkg:pypi/dulwich","source":"PYSEC-2026-2465"}],"prev":{"headline":"Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)","id":"CVE-2026-52725"},"products":["dulwich"],"published":"2026-06-10","related":[],"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":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-11","vendors":["jelmer"]},"summary":"Attackers can achieve remote code execution by crafting a repository with malicious submodule paths that write executable hooks into the victim's .git directory.","url":"https://insights.sbomify.com/CVE-2026-52726/"}