All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Critical Arbitrary File Write Vulnerability in Dulwich Git Library (CVE-2026-42305) Allows RCE on Windows

13d ago· 4 min readenNews

Summary

A security vulnerability (CVE-2026-42305) has been discovered in Dulwich, a pure-Python Git implementation. Versions 0.10.0 through 1.2.4 are affected by an arbitrary file write flaw that can lead to remote code execution when cloning or checking out malicious Git repositories on Windows. The issue stems from Dulwich's path-element validator accepting filenames with bytes that Windows interprets as structural path syntax, along with configuration bugs that silently ignored the core.protectNTFS and core.protectHFS settings. The vulnerability is fixed in version 1.2.5, which enables NTFS protection by default on all platforms. No effective workaround exists for affected versions.

Source

bskyCritical Arbitrary File Write Vulnerability in Dulwich Git Library (CVE-2026-42305) Allows RCE on Windowsnvd.nist.gov

Key quotes

· 5 pulled
Dulwich's path-element validator accepted tree entries whose filenames contained bytes that Windows interprets as structural path syntax.
Anyone who clones, fetches, or checks out an untrusted repository with Dulwich on Windows - either through the Dulwich CLI, porcelain.clone, or any downstream tool built on Dulwich - is impacted.
On affected versions the core.protectNTFS configuration key was silently ignored, so setting it to true does not mitigate the issue.
Users who cannot upgrade should avoid cloning, fetching, or checking out untrusted repositories with Dulwich on Windows.
After upgrading the NTFS validator is on by default on every platform, so no additional configuration is required.
Snippet from the RSS feed
Dulwich is a pure-Python implementation of the Git file formats and protocols. Versions starting with 0.10.0 and prior to 1.2.5 have an arbitrary file write leading to remote code execution when cloning or checking out a malicious Git repository on Window

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.