CVE-2026-52726Dulwich's submodule path traversal in porcelain.submodule_update /…
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.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | dulwich | Fix pending | UBUNTU-CVE-2026-52726 | |
| Ubuntu 26.04 | dulwich | Under investigation | UBUNTU-CVE-2026-52726 | |
| Ubuntu 25.10 | dulwich | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-52726 | |
| Ubuntu 24.04 | dulwich | Under investigation | UBUNTU-CVE-2026-52726 | |
| Ubuntu 22.04 | dulwich | Under investigation | UBUNTU-CVE-2026-52726 | |
| Ubuntu 20.04 | dulwich | Fix pending | UBUNTU-CVE-2026-52726 | |
| Ubuntu 18.04 | dulwich | Fix pending | UBUNTU-CVE-2026-52726 | |
| Ubuntu 16.04 | dulwich | Fix pending | UBUNTU-CVE-2026-52726 | |
| Debian 14 | dulwich | Fixed | 1.2.5-1 | DEBIAN-CVE-2026-52726 |
| Debian 13 | dulwich | Fix pending | DEBIAN-CVE-2026-52726 | |
| Debian 12 | dulwich | Fix pending | DEBIAN-CVE-2026-52726 | |
| Red Hat Enterprise Linux 8 | resource-agents | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | resource-agents-aliyun | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | resource-agents-gcp | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | resource-agents-paf | Fix pending Affected | ||
| PyPI library | dulwich | Fixed | 1.2.5 | PYSEC-2026-2465 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- jelmer dulwich: affected: >= 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.