CVE-2026-122299
Published:November 04, 2026
Updated:November 05, 2026
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
dulwich (CONDA):
Affected version(s) >=0.18.6 <1.2.20 || >=1.0.0 <1.2.20Fix Suggestion:
Update to version 1.2.20https://github.com/jelmer/dulwich.git (GITHUB):
Affected version(s) >=dulwich-0.3.2 <dulwich-1.2.20 || >=dulwich-1.0.0 <dulwich-1.2.20Fix Suggestion:
Update to version dulwich-1.2.20dulwich (PYTHON):
Affected version(s) >=0.3.2 <1.2.20 || >=1.0.0 <1.2.20Fix Suggestion:
Update to version 1.2.20Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
ACTIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH