Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-42305— Dulwich has an arbitrary file write via NTFS-hostile tree entries on Windows

CVSS 8.8 · High EPSS 0.64% · P48

Affected Version Matrix 1

VendorProductVersion RangeStatus
jelmerdulwich>= 0.10.0, < 1.2.5affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-42305

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Dulwich has an arbitrary file write via NTFS-hostile tree entries on Windows
Source: CVE Program / CVE List V5
Vulnerability Description
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 Windows. Dulwich's path-element validator accepted tree entries whose filenames contained bytes that Windows interprets as structural path syntax. Contributing configuration bugs made matters worse. The core.protectNTFS and core.protectHFS settings were looked up under a wrong option name and so user-set values were silently ignored, and core.protectNTFS only defaulted to true on Windows (Git upstream has defaulted it to true everywhere since CVE-2019-1353). Both have been corrected. 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. POSIX clones are not directly exploitable (on POSIX \ is a literal filename byte), but a POSIX user can unknowingly propagate a malicious tree to Windows consumers via push or re-publication. This issue is fixed in Dulwich 1.2.5. Users should upgrade to 1.2.5 or later. There is no effective pre-patch workaround. 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Dulwich 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Dulwich是Jelmer Vernooij个人开发者的一款纯Python实现的Git仓库操作接口。 Dulwich 0.10.0版本至1.2.5之前版本存在路径遍历漏洞,该漏洞源于Windows上路径元素验证器接受包含Windows解释为结构路径语法的文件名,可能导致任意文件写入和远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
jelmerdulwich >= 0.10.0, < 1.2.5 -

II. Public POCs for CVE-2026-42305

#POC DescriptionSource LinkShenlong Link
AI-Generated POCVerified env Premium
Qwen3.6-35B-A3B · 9243 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-42305

登录查看更多情报信息。

Patches & Fixes for CVE-2026-42305 (2)

Vendor Advisories for CVE-2026-42305 (1)

Vendor Pages for CVE-2026-42305 (1)

Same Patch Batch · jelmer · 2026-06-10 · 5 CVEs total

CVE-2026-527267.5 HIGHDulwich's submodule path traversal in porcelain.submodule_update / porcelain.clone(recurse
CVE-2026-477345.7 MEDIUMDulwich has unbounded memory allocation in receive-pack from crafted thin packs
CVE-2026-477123.3 LOWDulwich doesn't sanitize commit subjects in `porcelain.format_patch`
CVE-2026-42563Dulwich Vulnerable to Command Injection via Merge Driver Path

IV. Related Vulnerabilities

V. Comments for CVE-2026-42305

No comments yet


Leave a comment