CVEfocus › CVE database › CVE-2026-52726

CVE-2026-52726Dulwich's submodule path traversal in porcelain.submodule_update /…

CVSS 7.5 HighEPSS 0.7% (higher than 48% of CVEs)Published 2026-06-10Updated 2026-06-11Assigner: GitHub_M

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.

CWE-22

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

2Fixed
10Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10dulwichFix pendingUBUNTU-CVE-2026-52726
Ubuntu 26.04dulwichUnder investigationUBUNTU-CVE-2026-52726
Ubuntu 25.10dulwichWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-52726
Ubuntu 24.04dulwichUnder investigationUBUNTU-CVE-2026-52726
Ubuntu 22.04dulwichUnder investigationUBUNTU-CVE-2026-52726
Ubuntu 20.04dulwichFix pendingUBUNTU-CVE-2026-52726
Ubuntu 18.04dulwichFix pendingUBUNTU-CVE-2026-52726
Ubuntu 16.04dulwichFix pendingUBUNTU-CVE-2026-52726
Debian 14dulwichFixed1.2.5-1DEBIAN-CVE-2026-52726
Debian 13dulwichFix pendingDEBIAN-CVE-2026-52726
Debian 12dulwichFix pendingDEBIAN-CVE-2026-52726
Red Hat Enterprise Linux 8resource-agentsFix pending
Affected
Red Hat Enterprise Linux 8resource-agents-aliyunFix pending
Affected
Red Hat Enterprise Linux 8resource-agents-gcpFix pending
Affected
Red Hat Enterprise Linux 8resource-agents-pafFix pending
Affected
PyPI librarydulwichFixed1.2.5PYSEC-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.

References

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.