Bug 2567721 (CVE-2026-122299) - CVE-2026-122299 dulwich: dulwich: Arbitrary code execution via duplicate tree header parsing
Summary: CVE-2026-122299 dulwich: dulwich: Arbitrary code execution via duplicate tree...
Keywords:
Status: NEW
Alias: CVE-2026-122299
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-05 22:20 UTC by OSIDB Bzimport
Modified: 2026-11-06 00:46 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-05 22:20:43 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.