CVE-2026-122299Dulwich before 1.2.20 Commit Parser Tree Header Misinterpretation
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.
What to do
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | dulwich | Fix pending | UBUNTU-CVE-2026-122299 | |
| Ubuntu 26.04 | dulwich | Under investigation | UBUNTU-CVE-2026-122299 | |
| Ubuntu 24.04 | dulwich | Under investigation | UBUNTU-CVE-2026-122299 | |
| Ubuntu 22.04 | dulwich | Under investigation | UBUNTU-CVE-2026-122299 | |
| Ubuntu 20.04 | dulwich | Fix pending | UBUNTU-CVE-2026-122299 | |
| Ubuntu 18.04 | dulwich | Fix pending | UBUNTU-CVE-2026-122299 | |
| Ubuntu 16.04 | dulwich | Fix pending | UBUNTU-CVE-2026-122299 | |
| Debian 14 | dulwich | Fix pending | DEBIAN-CVE-2026-122299 | |
| Debian 13 | dulwich | Fix pending | DEBIAN-CVE-2026-122299 | |
| Debian 12 | dulwich | Fix pending | DEBIAN-CVE-2026-122299 | |
| Red Hat Enterprise Linux 8 | resource-agents | Under investigation | ||
| Red Hat Enterprise Linux 8 | resource-agents-aliyun | Under investigation | ||
| Red Hat Enterprise Linux 8 | resource-agents-gcp | Under investigation | ||
| Red Hat Enterprise Linux 8 | resource-agents-paf | Under investigation | ||
| Red Hat Enterprise Linux 7 | resource-agents | Under investigation | ||
| Red Hat Enterprise Linux 7 | resource-agents-aliyun | Under investigation | ||
| Red Hat Enterprise Linux 7 | resource-agents-gcp | Under investigation | ||
| Red Hat Enterprise Linux 7 | resource-agents-sap | Under investigation | ||
| Red Hat Enterprise Linux 7 | resource-agents-sap-hana | Under investigation | ||
| Red Hat Enterprise Linux 7 | resource-agents-sap-hana-scaleout | Under investigation | ||
| Red Hat Enterprise Linux 7 | sap-cluster-connector | Under investigation |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- jelmer dulwich: affected: before 1.2.20; fixed in
1.2.20
Vendor advisories:
- https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.20 (patch, release-notes)
- https://github.com/jelmer/dulwich/commit/b77f385b4b0d2d2c7f5ac39dae628948f7ad3a96 (patch)
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
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.