Skip to main content

Dulwich CVE-2026-122299

| EUVDEUVD-2026-117194 HIGH
Improper Preservation of Consistency Between Independent Representations of Shared State (CWE-1250)
2026-11-04 VulnCheck GHSA-6jv4-m4h7-2vv8
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft commit with two tree headers
  2. Delivery
    Host as Poetry git dependency
  3. Exploit
    Victim/CI runs poetry install
  4. Execution
    dulwich resolves to attacker tree
  5. Impact
    Malicious 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

dulwich 0 <1.2.20

Affected Packages

euvd dulwich fix: 1.2.20

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

Vendor (VulnCheck) PRIMARY 8.6 HIGH
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.8 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
High
dulwich is bundled by Poetry, a very widely used Python dependency manager
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy