{"id":"CVE-2026-52726","published":"2026-06-10T22:13:33Z","modified":"2026-06-11T12:55:09Z","title":"Dulwich's submodule path traversal in porcelain.submodule_update / porcelain.clone(recurse_submodules=True) yields RCE…","vendor":"jelmer","product":"dulwich","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0068,"percentile":0.47531,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/jelmer/dulwich/security/advisories/GHSA-gfhv-vqv2-4544","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.51},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"jelmer","affectedVersions":[{"vendor":"jelmer","product":"dulwich","versions":[">= 0.23.2, < 1.2.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-11T12:54:26.026132Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"dulwich","vulnerableRanges":[">=0.23.2, <1.2.5"],"patched":["1.2.5"],"from":["GHSA-gfhv-vqv2-4544","PYSEC-2026-2465"],"provenance":"source"}],"summary":{"text":"Dulwich, a pure-Python implementation of Git's file formats and protocols, fails to validate submodule paths in porcelain.submodule_update and porcelain.clone(recurse_submodules=True) in versions from 0.23.2 up to (not including) 1.2.5. An attacker who controls an upstream repository can supply a crafted submodule whose path points into the parent repository's .git directory, such as .git/hooks, letting them place executable files that run when a later Git or Dulwich command triggers the hook, which requires the victim to clone or update such a repository with submodule recursion enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:08Z"},"euvd":{"id":"EUVD-2026-36195","exploited":false,"provenance":"source"}}