Vulnerability · Published Nov 4, 2026 · Assigned by VulnCheck

CVE-2026-122299Dulwich before 1.2.20 Commit Parser Tree Header Misinterpretation

High 8.8

In plain English

A high-severity security flaw in dulwich from jelmer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities).

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.3%top 74.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

Dulwich before 1.2.20 contains a commit object parsing vulnerability where the read path in _parse_commit resolves a duplicate tree header to the last occurrence instead of the first, diverging from core git's resolution behavior, while Poetry 2.5.1 ships this version and uses dulwich by default for git dependency installation. Attackers can craft a commit object with two tree headers so that reviewers and CI using git see a benign tree while Poetry's dulwich-based checkout resolves to a different attacker-controlled tree containing malicious build scripts such as setup.py, resulting in unreviewed code execution on the install or build host.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12dulwichno fix listedDEBIAN-CVE-2026-122299
Debian:13dulwichno fix listedDEBIAN-CVE-2026-122299
Debian:14dulwichno fix listedDEBIAN-CVE-2026-122299
Ubuntu:22.04:LTSdulwichno fix listedUBUNTU-CVE-2026-122299
Ubuntu:24.04:LTSdulwichno fix listedUBUNTU-CVE-2026-122299
Ubuntu:26.04:LTSdulwichno fix listedUBUNTU-CVE-2026-122299
Ubuntu:26.10dulwichno fix listedUBUNTU-CVE-2026-122299

Affected products (as reported)

VendorProductVersions
jelmer dulwich 0 – before 1.2.20

Weakness: CWE-1250, CWE-115 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References