Intel

AIKIDO-2026-232780

dulwich is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

50

Medium Risk

This Affects:

PYTHONdulwich
0.10.0 - 1.2.10
Fixed in 1.2.11
Are you affected? Scan for Free

TL;DR

get_path_element_validator selects the checkout path-element check with if protectNTFS / elif protectHFS, so when core.protectNTFS is on (its default everywhere) the HFS check never runs. On macOS, where core.protectHFS also defaults on, an HFS+ spelling of .git built from ignorable code points can pass the NTFS validator, be written on checkout of an untrusted tree, and collapse back to .git on the filesystem. The fix requires every enabled protection to pass so NTFS and HFS checks apply together.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you check out or clone untrusted repositories on macOS (where core.protectHFS defaults on).

Background info

dulwich is vulnerable to Path Traversal in versions 0.10.0 - 1.2.10.

How to fix this

Upgrade the dulwich library to the patch version.