CVE catalog

CVE-2026-42563

Dulwich is a pure-Python implementation of the Git file formats and protocols. Starting in version 0.24.0 and prior to version 1.2.5, Dulwich's `ProcessMergeDriver` substitutes the file path (from the

[CVE catalog]

Severity
High · CVSS 8CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.56% · Oct 25, 2026

Dulwich is a pure-Python implementation of the Git file formats and protocols. Starting in version 0.24.0 and prior to version 1.2.5, Dulwich's `ProcessMergeDriver` substitutes the file path (from the git tree, controllable by an attacker via a malicious branch) into the merge driver command via the `%P` placeholder and executes it with `subprocess.run(..., shell=True)`. An attacker who can cause a victim to merge an untrusted branch can achieve arbitrary command execution by crafting malicious file paths. Version 1.2.5 fixes the issue.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiandulwichsid1.2.17-1fixed
Debiandulwichforky1.2.17-1fixed
Debiandulwichtrixie0.22.7-1vulnerable
Debiandulwichbookworm0.21.2-1vulnerable
CpedulwichNot reportedNot reportedvulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiandulwichsourcesid1.2.5-1not yet assignedNot reportedNot reported
Debiandulwichsourceforky1.2.5-1not yet assignedNot reportedNot reported
Debiandulwichsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiandulwichsourcebookworm(unfixed)not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-dulwich]Affected

    Source package: [dulwich]

    Details (2)
    • 0.21.2-1+b1 · amd64 · bookworm

      Affected

      nvd · dulwich · debian · bookworm; nvd · dulwich · debian · 12

    • 0.21.2-1+b1 · arm64 · bookworm

      Affected

      nvd · dulwich · debian · bookworm; nvd · dulwich · debian · 12

[Debian 13 (Trixie)]

  • [python3-dulwich]Affected

    Source package: [dulwich]

    Details (2)
    • 0.22.7-1 · amd64 · trixie

      Affected

      nvd · dulwich · debian · 13

    • 0.22.7-1 · arm64 · trixie

      Affected

      nvd · dulwich · debian · 13

Observed:

References