cve.bz

CVE-2026-122299 jelmer dulwich: Misinterpretation of Input

8.6 highEPSS 0.6%

High (8.6) in jelmer dulwich. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

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

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.6% (up from 0.3% a week ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-25. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-11-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-115 Misinterpretation of Input
CWE-1250 Improper Preservation of Consistency Between Independent Representations of Shared State
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-122299 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-122299?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-122299?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-122299 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
jelmer dulwichbefore 1.2.20

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14dulwichno fix listedDEBIAN-CVE-2026-122299
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 moredulwichno fix listedUBUNTU-CVE-2026-122299
openSUSELeap 16.0python-dulwich0.22.8-bp160.2.1openSUSE-SU-2026:22412-1
openSUSETumbleweedpython-dulwich1.2.21-1.1openSUSE-SU-2026:12603-1
Azure Linux3python-dulwichno fix listedAZL-112720

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an Important severity risk because successful exploitation can result in full code execution on build systems or developer workstations, though it requires tricking a user or pipeline into processing an untrusted Git dependency. In typical Red Hat deployments, Dulwich is not run as an exposed network service, but rather operates within development environments or packaging toolchains to handle repository operations. Because Dulwich resolves duplicated tree definitions differently from reference Git implementations, malicious payloads can bypass standard code review or CI audit checks, making this a high-impact supply chain concern.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

--- CME Mitigation Guidance (2026-11-06) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to ensure Git commit parsing enforces strict tree header ordering and single-occurrence resolution across all repository processing tools: upgrade to Dulwich 1.2.20 (or the corresponding fixed Red Hat builds), which require the tree header first, resolve only the first occurrence of repeated commit and tag headers, and reject commits and tags that core Git refuses to parse, closing all 2 injection vectors (crafted Git commit object with duplicate tree headers, dependency installation using Dulwich-based package managers). Until patched, this is a concern on Developer workstations and build systems processing untrusted Git repositories via Dulwich or Dulwich-dependent tools, so Avoid resolving dependencies from untrusted Git repositories in automated CI/CD pipelines and developer environments using Dulwich-dependent tools like Poetry. As a compensating measure, Restrict outbound network traffic from build hosts to contain C2 communication and payload retrieval, Enforce WDAC in enforced mode to block unauthorized binaries and scripts introduced by the malicious tree, Deploy EDR agents to detect anomalous child processes and system activity spawned by executed build scripts, Configure auditd to log execve syscalls and process execution events on Linux build systems, and Use Falco or eBPF runtime security to detect anomalous shell spawns and unexpected outbound network traffic in CI/CD containers. These controls limit blast radius and contain exploitation, but they do not fix the underlying duplicate tree header parser differential — apply the upstream patch to fully remediate.

Highest-impact CME: CME-925 Windows Defender Application Control (WDAC) (medium)

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/controller-rhel9Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/eda-controller-rhel9Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/lightspeed-chatbot-rhel9Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/controller-rhel9Under investigation
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/eda-controller-rhel9Under investigation
Red Hat Enterprise Linux 7resource-agentsUnder investigation
Red Hat Enterprise Linux 8resource-agentsUnder investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-agent-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-autogluon-server-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-router-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-storage-initializer-rhel9Under investigation
Red Hat OpenShift Container Platform 4python-dulwichUnder investigation

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-122299.

References

Check your stackJSON