Intel

AIKIDO-2026-451908

dulwich is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 30, 2026

86

High Risk

This Affects:

PYTHONdulwich
0.8.4 - 1.2.11
Fixed in 1.2.12
Are you affected? Scan for Free

TL;DR

build_index_from_tree in dulwich/index.py materializes checkout and index entries without verifying that the leading path components of each entry resolve inside the work tree. A crafted tree that contains a symlink entry (for example link pointing to an absolute or out-of-tree target) followed by an entry beneath it (link/foo) causes files to be written through the symlink to an arbitrary filesystem location. Checking out or cloning a malicious repository can therefore overwrite sensitive files such as .git/hooks, which leads to remote code execution on a later git operation. The fix applies the verify_leading_dirs guard so entries whose leading path resolves through a symlink are refused.

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 an untrusted repository.

Background info

dulwich is vulnerable to Path Traversal in versions 0.8.4 - 1.2.11.

How to fix this

Upgrade the dulwich library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform