Intel

AIKIDO-2026-11085

dulwich is vulnerable to Path Traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 5, 2026
June 5, 2026

81

CVE Score

High

Path Traversal

Are you affected? Scan for Free

TL;DR

Several dulwich work-tree update paths did not fully enforce core.protectNTFS and core.protectHFS, so a crafted branch merged or pulled via update_working_tree could still materialize NTFS-unsafe names such as git~2 even after the 1.2.5 hardening reached only checkout and reset. Untrusted patch headers processed by apply_patches (for example during git am) could also carry +++ or rename targets with .. or absolute paths that were joined onto the repository root and written outside the working tree. The fix derives the configured path validator for all work-tree updates, rejects out-of-tree patch targets, and adds defense-in-depth validation in checkout, restore, and reset_file.

How do I fix this?

Upgrade the dulwich library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

1.2.0 - 1.2.5

Fixed in 1.2.6

Background info

dulwich is vulnerable to Path Traversal in versions 1.2.0 - 1.2.5.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea