CVE-2026-42305

Jelmer Vernooij (Dulwich) · Dulwich

Dulwich contains an arbitrary file write vulnerability via NTFS-hostile tree entries, enabling remote code execution when checking out malicious Git repositories.

Executive summary

A high-severity arbitrary file write vulnerability in the Dulwich library allows for remote code execution when processing untrusted Git repositories on Windows.

Vulnerability

The vulnerability is an arbitrary file write caused by improper handling of NTFS-hostile tree entries. An unauthenticated attacker can achieve remote code execution when a user performs a clone, fetch, or checkout of a malicious Git repository.

Business impact

With a CVSS score of 8.8, this vulnerability represents a significant risk to developers and build systems. Exploitation can lead to full system compromise, as arbitrary code execution allows an attacker to install backdoors, steal source code, or exfiltrate sensitive environment credentials.

Remediation

Immediate Action: Update the Dulwich library to version 1.2.5-1 or later across all affected development environments and CI/CD pipelines.

Proactive Monitoring: Audit Git repository cloning activities and monitor for unusual file system modifications in directory paths associated with version control operations.

Compensating Controls: Avoid cloning or checking out repositories from untrusted or unverified sources, especially when using Windows-based development environments.

Exploitation status

Public Exploit Available: true

Analyst recommendation

Given the existence of a public exploit, the risk of exploitation is immediate. Development teams must prioritize updating the Dulwich package to version 1.2.5-1. Any system currently utilizing older versions to process external Git repositories should be considered at risk of remote code execution.