Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft commit with two tree headers
-
DeliveryHost as Poetry git dependency
-
ExploitVictim/CI runs poetry install
-
Executiondulwich resolves to attacker tree
-
ImpactMalicious setup.py executes on build host
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware access interface protection
|
| Exploitation Conditions | Exploitation requires that the victim install an attacker-influenced git dependency through Poetry (2.5.1) using its default dulwich-based checkout, where dulwich before 1.2.20 resolves a commit containing two 'tree' headers to the last occurrence instead of git's first-occurrence behavior. The concrete prerequisite is a crafted commit object with duplicate tree headers whose last tree points to an attacker-controlled tree containing a malicious build script (e.g., setup.py). Limiting factors: the vulnerability is not triggered against arbitrary hosts remotely - it needs the active step of a developer or CI pipeline running poetry install/build against the malicious git dependency (CVSS UI:A), and it depends on the Poetry/dulwich git-install path rather than a standard git client, which would see the benign first tree. |
| Impact | Signals are moderately consistent and point to a real but non-emergency, developer/build-chain risk. The CVSS 4.0 base score of 8.6 (AV:N/AC:L/PR:N but UI:A) reflects high confidentiality/integrity/availability impact gated by required user interaction - exploitation is not fully automatic; a victim or CI pipeline must choose to install the attacker's git dependency through Poetry. The vuln.today decision label is 'this_week' (not act_now/emergency), which aligns with a patched flaw that has no confirmed active exploitation. KEV status is not present in the input, so there is no confirmed active exploitation; no EPSS score was provided, so widespread exploitation probability cannot be quantified from this data. No public exploit code is referenced - only the fix commit and the VulnCheck advisory. The core concern is a parser-differential (CWE-1250): git and reviewers see one tree while Poetry's dulwich checkout resolves a different attacker-controlled tree, enabling unreviewed code execution - a classic supply-chain/trust-boundary bypass whose severity stems from defeating code review rather than from remote mass exploitability. Net: a genuine priority for Poetry/dulwich users to patch this week, not a drop-everything internet-wide emergency, with the caveat that EPSS is missing and KEV absence means exploitation is unproven, not disproven. |
| Exploit ScenarioDerived | An attacker publishes (or compromises) a git repository used as a Poetry git dependency and crafts a commit containing two tree headers: the first points to a benign tree visible to human reviewers and CI running real git, the second to an attacker-controlled tree carrying a malicious setup.py. When a developer or CI pipeline runs Poetry (2.5.1, bundling dulwich before 1.2.20) to install that dependency, dulwich resolves the commit to the last tree header and checks out the malicious tree, executing the build script on the install/build host. No public exploit code is referenced in the available data, though the parser-differential technique is described in detail in the vendor and VulnCheck advisories. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
Dulwich, the pure-Python git implementation that Poetry 2.5.1 uses by default to install git dependencies, parses duplicate 'tree' headers in commit objects by taking the last occurrence, while core git takes the first. A crafted git dependency whose commit carries two tree headers therefore appears benign to human reviewers and CI jobs that inspect it with git, but resolves through Poetry/dulwich to a different attacker-controlled tree containing malicious build scripts such as setup.py, giving unreviewed code execution on the install or build host (CVSS 4.0 base 8.6; assessed 3.1 AV:N/AC:L/PR:N/UI:R/C:H/I:H/A:H). Exploitation requires the victim to run a Poetry install or build against the malicious dependency, so it is a developer and build-chain risk rather than a remote attack on arbitrary hosts; no public exploit code or confirmed active exploitation was identified at time of analysis, and the vendor priority is remediation this week.
RemediationAI
Vendor-released patch: dulwich 1.2.20 (https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.20), with the underlying upstream fix in commit b77f385b4b0d2d2c7f5ac39dae628948f7ad3a96; the release notes state that repeated or misplaced commit and tag headers are now parsed the same way git does and that commits and tags git refuses to parse are rejected. Upgrade dulwich to 1.2.20 or later in every environment that resolves git dependencies through dulwich, including Poetry 2.5.1 installations, and rebuild or re-resolve lock files so a patched dulwich is what actually performs the checkout. Because the compensating value of the affected path is the semantic gap between git and dulwich, reviewing a git dependency with a standard git client does not by itself protect a host whose install path uses dulwich - the parser must be patched. Until the upgrade is deployed, restrict Poetry-based dependency installation to vetted, pinned git sources and treat unreviewed git dependency checkouts in CI as trusted-code execution; no alternative workaround is documented in the available advisory.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a parser differential in dulwich's commit-object reader (_parse_commit), tracked as CWE-1250 (improper preservation of consistency between independent representations of shared state): two independent implementations reading the same serialized git object derive different, security-relevant state from it. Git commit objects are header/message byte streams whose 'tree' header binds the commit to a directory snapshot; dulwich before 1.2.20 resolved a repeated tree header to the last occurrence instead of the first, diverging from core git's behavior. Because the loose/packed object bytes are identical, the discrepancy is invisible at the transport layer and only manifests in whichever tool performs the checkout - git-based review and CI see the first (benign) tree while dulwich-based retrieval sees the attacker's tree. The vendor's 1.2.20 release notes describe the underlying fix as parsing repeated or misplaced commit and tag headers the same way git does and rejecting commits and tags that git refuses to parse, alongside related hardening (refusing ref names outside refs/, refusing to check out .gitmodules as a symlink, validating object ids in LFS batch requests). The affected CPE is cpe:2.3:a:jelmer:dulwich:*:*:*:*:*:*:*:*, i.e. all dulwich releases prior to 1.2.20; the trigger conditions beyond the duplicate-header commit format are not further described in the available sources.
Know when Dulwich gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Delivered over the network via a git dependency with no attacker privileges (PR:N) but requiring the victim to run the install (UI:R); the parser differential yields arbitrary code execution, so C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
Poetry versions up to 2.5.1 contain a vulnerability in its default Git dependency handler (Dulwich) that allows a malicious dependency to execute arbitrary code during installation or build, bypassing code review and CI checks. This affects developers and build systems, creating a supply-chain risk that could lead to compromised build hosts and injected malware into production software. Leadership should prioritize remediation due to the high severity and potential for significant business impact.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
The build_index_from_tree function in index.py in Dulwich before 0.9.9 allows remote attackers to execute arbitrary code
Arbitrary code execution in Dulwich (pure-Python Git implementation) versions 0.23.2 through 1.2.4 allows a malicious up
Dulwich before 0.18.5, when an SSH subprocess is used, allows remote attackers to execute arbitrary commands via an ssh
Arbitrary file write in Dulwich before 1.2.9 on Windows can be escalated to remote code execution when an unauthenticate
Buffer overflow in the C implementation of the apply_delta function in _pack.c in Dulwich before 0.9.9 allows remote att
Path-restricted checkout in Dulwich 0.24.0 through 1.2.7 follows symlinks when writing restored files, so a crafted repo
Arbitrary file write leading to potential code execution affects Dulwich 0.22.5 through 1.2.7 when a victim pops a stash
Symlink-based path traversal in Dulwich 0.23.1 through 1.2.7 allows an attacker who controls a repository's commit histo
Dulwich before 1.2.9 can be driven into an infinite recursion loop by a crafted packfile containing an OFS_DELTA object
EUVD-2026-117194
GHSA-6jv4-m4h7-2vv8
NVD
CVE.org
EPSS
VulDB
Exploit-DB