Description
Dulwich from 0.23.1 before 1.2.8 contains a path traversal vulnerability in CommitFilter._apply_index_filter() 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 filter_branch, enabling code execution by writing into .git/hooks.
Published: 2026-10-21
Score: 7.3 High
EPSS: < 1% Very Low
KEV: No
Impact: Code execution via symlink path traversal
Action: Apply Patch
AI Analysis

Impact

Dulwich versions 0.23.1 through 1.2.7 contain a path traversal flaw in CommitFilter._apply_index_filter that permits attackers to create symbolic links that, when filter_branch is run, write files outside the intended working directory. This ability to write arbitrary files, including executable hooks in .git/hooks, can lead to remote code execution on the system hosting the repository. The weakness is a classic directory traversal (CWE-22 and CWE-59) and threatens confidentiality, integrity, and availability by enabling unauthorized file manipulation and script execution within the Git repository environment.

Affected Systems

The vulnerability affects the Dulwich project library released under the jelmer:dulwich vendor, including all versions from 0.23.1 up to but excluding 1.2.8. Any deployment that uses these versions in a development or production environment is potentially impacted. This includes self-hosted Git services or applications embedding Dulwich for repository manipulation.

Risk and Exploitability

The CVSS score of 7.3 classifies the issue as high severity, while the EPSS score of less than 1% indicates a very low but present likelihood of exploitation. The flaw is not listed in the CISA KEV catalog. Attackers can exploit the weakness by crafting a malicious repository that contains a symlink in an ancestor commit pointing to a location outside the working directory, which is then followed during a filter_branch operation. The attack vector is inferred to be local or remote repository manipulation, typically within environments where filter_branch is executed on untrusted content.

Generated by OpenCVE AI on October 22, 2026 at 14:48 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Dulwich to 1.2.8 or later, which removes the vulnerability.
  • Temporarily disable the filter_branch command for any untrusted repositories until a patch is applied.
  • Validate repository contents before running filter_branch by checking for symlinks that point outside the intended working directory and reject or sanitize such commits.

Generated by OpenCVE AI on October 22, 2026 at 14:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 22 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 22 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-59
References
Metrics threat_severity

None

threat_severity

Important


Wed, 21 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
Description Dulwich from 0.23.1 before 1.2.8 contains a path traversal vulnerability in CommitFilter._apply_index_filter() 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 filter_branch, enabling code execution by writing into .git/hooks.
Title Dulwich 0.23.1 before 1.2.8 Symlink Path Traversal via filter_branch Index Filter
First Time appeared Dulwich Project
Dulwich Project dulwich
Weaknesses CWE-22
CPEs cpe:2.3:a:dulwich_project:dulwich:*:*:*:*:*:*:*:*
Vendors & Products Dulwich Project
Dulwich Project dulwich
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Dulwich Project Dulwich
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-22T15:51:35.497Z

Reserved: 2026-10-20T21:46:55.741Z

Link: CVE-2026-114097

cve-icon Vulnrichment

Updated: 2026-10-22T15:51:31.194Z

cve-icon NVD

Status : Deferred

Published: 2026-10-21T01:17:35.100

Modified: 2026-10-22T16:17:34.150

Link: CVE-2026-114097

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-21T00:37:00Z

Links: CVE-2026-114097 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T22:15:12Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')