CVE catalog

CVE-2026-52726

Dulwich is a pure-Python implementation of the Git…

[CVE catalog]

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)]

  • 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)]

  • 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