# CVE-2026-52726: Dulwich's submodule path traversal in porcelain.submodule\_update / porcelain.clone(recurse\_submodules=True) yields RCE via attacker-dropped .git/hooks payload

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 05-12-2026)
- Next step: Check applicability: affected before 1.2.5 (CNA); fix release not confirmed
- Status: published
- Published: 2026-06-10 · Modified: 2026-06-11
- Aliases: GHSA-gfhv-vqv2-4544, PYSEC-2026-2465, UBUNTU-CVE-2026-52726, DEBIAN-CVE-2026-52726
- Record: https://cvemate.com/vulnerability/CVE-2026-52726 · JSON: https://cvemate.com/vulnerability/CVE-2026-52726/json

## 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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.448%, percentile 40.714%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian dulwich (Debian): All versions (No fix recorded) \| \< 1.2.5-1
- ubuntu dulwich (Ubuntu): All versions (No fix recorded)
- jelmer dulwich: ≥ 0.23.2, \< 1.2.5
- PyPI dulwich (PyPI): ≥ 0.23.2, \< 1.2.5

## References

- <https://github.com/jelmer/dulwich/security/advisories/GHSA-gfhv-vqv2-4544>
- <https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52726>
- <https://github.com/jelmer/dulwich>
- <https://pypi.org/project/dulwich>
- <https://github.com/advisories/GHSA-gfhv-vqv2-4544>
- <https://ubuntu.com/security/CVE-2026-52726>
- <https://www.cve.org/CVERecord?id=CVE-2026-52726>
- <https://security-tracker.debian.org/tracker/CVE-2026-52726>

---

Data as of 2026-12-05T14:13:21.926Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
