CVE-2026-114097: Dulwich 0.23.1 before 1.2.8 Symlink Path Traversal via filter_branch Index Filter

Published Oct 21, 2026
·
Updated

Dulwich from 0.23.1 before 1.2.8 contains a path traversal vulnerability in CommitFilter.applyindexfilter() that allows attackers to write files outside the working directory via symlinks persisting between commits. Attackers can craft a repository where an ancestor commit's symlink redirects a descendant commit's file writes during filterbranch, enabling code execution by writing into .git/hooks.

Affected Software

1 affected component
pypi/dulwich>=0.23.1<1.2.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Dulwich to a version that resolves this vulnerability.

    Fixed in 1.2.8

Event History

Oct 21, 2026
CVE Published
via MITRE·12:37 AM
Data Sourced
via MITRE·12:37 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Installations using Dulwich versions from 0.23.1 up to, but not including, 1.2.8 are affected when they run filter_branch with the vulnerable index-filter path on an attacker-crafted repository.

2

What does an attacker need to exploit it?

The attacker needs to supply or induce processing of a repository whose ancestor commit contains a symlink and whose descendant commit writes through that symlink. Exploitation also requires a user to run the affected filter_branch operation, consistent with the user-interaction requirement in the severity vector.

3

What is the practical impact of successful exploitation?

The crafted symlink can redirect writes outside the working directory. The described impact includes writing to .git/hooks, which can lead to code execution.

4

What should be done if immediate patching is not possible?

Do not run filter_branch with the affected index-filter behavior on untrusted or attacker-supplied repositories. Treat repositories containing symlinks across commit history as unsafe for this operation until Dulwich is updated to 1.2.8 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203