{"cve":"CVE-2026-52726","nvd":{"published":"2026-06-10T23:16:50.143","modified":"2026-07-21T19:10:00.107","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-22"],"references":["https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5","https://github.com/jelmer/dulwich/security/advisories/GHSA-gfhv-vqv2-4544","https://github.com/jelmer/dulwich/security/advisories/GHSA-gfhv-vqv2-4544"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:38:48.522727527+00:00"},"epss":{"cve":"CVE-2026-52726","score":0.00448,"percentile":0.38996,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-gfhv-vqv2-4544","url":"https://osv.dev/vulnerability/GHSA-gfhv-vqv2-4544","summary":"Dulwich's submodule path traversal in porcelain.submodule_update / porcelain.clone(recurse_submodules=True) yields RCE via attacker-dropped .git/hooks payload","modified":"2026-07-13T16:42:54.306948881Z","packages":[{"ecosystem":"PyPI","name":"dulwich","purl":"pkg:pypi/dulwich","ranges":[">=0.23.2 <1.2.5"],"fixed":["1.2.5"]}]},{"id":"PYSEC-2026-2465","url":"https://osv.dev/vulnerability/PYSEC-2026-2465","summary":"Dulwich's submodule path traversal in porcelain.submodule_update / porcelain.clone(recurse_submodules=True) yields RCE via attacker-dropped .git/hooks payload","modified":"2026-07-13T16:31:41.543109194Z","packages":[{"ecosystem":"PyPI","name":"dulwich","purl":"pkg:pypi/dulwich","ranges":[">=0.23.2 <1.2.5"],"fixed":["1.2.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}