
CVE catalog
CVE-2026-52726
Dulwich is a pure-Python implementation of the Git…
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.
- Severity
- High · CVSS 7.5
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.45% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
Version impact has not been established. The original provider fields are retained below.
Provider details and historical evidence
Original provider fields
{
"package_releases": [
{
"name": "dulwich",
"status": "fixed",
"release": "sid",
"version": "1.2.17-1"
},
{
"name": "dulwich",
"status": "fixed",
"release": "forky",
"version": "1.2.17-1"
},
{
"name": "dulwich",
"status": "vulnerable",
"release": "trixie",
"version": "0.22.7-1"
},
{
"name": "dulwich",
"status": "vulnerable",
"release": "bookworm",
"version": "0.21.2-1"
}
],
"fixed_versions": [
{
"bug": null,
"name": "dulwich",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "1.2.5-1"
},
{
"bug": null,
"name": "dulwich",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "1.2.5-1"
},
{
"bug": null,
"name": "dulwich",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": ""
},
{
"bug": null,
"name": "dulwich",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "dulwich",
"ecosystem": "cpe",
"fixed_version": "not yet fixed"
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [python3-dulwich]Unknown
Source package: [dulwich]
Details (2)
0.21.2-1+b1· amd64 · bookwormAffected
nvd · dulwich · debian · bookworm; nvd · dulwich · debian · 12
0.21.2-1+b1· arm64 · bookwormAffected
nvd · dulwich · debian · bookworm; nvd · dulwich · debian · 12
[Debian 13 (Trixie)]
- [python3-dulwich]Unknown
Source package: [dulwich]
Details (2)
0.22.7-1· amd64 · trixieAffected
nvd · dulwich · debian · 13
0.22.7-1· arm64 · trixieAffected
nvd · dulwich · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2026-52726]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-52726]
- [https://security-tracker.debian.org/tracker/CVE-2026-52726]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52726.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]