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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-04 · Modified: 2026-11-09
- Aliases: DEBIAN-CVE-2026-122299, UBUNTU-CVE-2026-122299, openSUSE-SU-2026:22412-1
- Record: https://cvemate.com/vulnerability/CVE-2026-122299 · JSON: https://cvemate.com/vulnerability/CVE-2026-122299/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.435%, percentile 39.552%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian dulwich (Debian): All versions (No fix recorded)
- ubuntu dulwich (Ubuntu): All versions (No fix recorded)
- jelmer dulwich: \< 1.2.20
- opensuse python-dulwich&distro=openSUSE Leap 16.0 (openSUSE): \< 0.22.8-bp160.2.1

## References

- <https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.20>
- <https://github.com/jelmer/dulwich/commit/b77f385b4b0d2d2c7f5ac39dae628948f7ad3a96>
- <https://www.vulncheck.com/advisories/dulwich-before-commit-parser-tree-header-misinterpretation>
- <https://security-tracker.debian.org/tracker/CVE-2026-122299>
- <https://ubuntu.com/security/CVE-2026-122299>
- <https://www.cve.org/CVERecord?id=CVE-2026-122299>
- <https://bugzilla.suse.com/1289542>
- <https://www.suse.com/security/cve/CVE-2026-122299>

---

Data as of 2026-12-05T14:04:39.078Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
