CVE Database›Document archive›CVE-2026-47712

CVE-2026-47712

dulwich: Dulwich: Arbitrary file write via malicious commit subject in format_patch

Loading…

Severity

Low

Red Hat Product Security

3.3

CVSS 3.1

Review impact separately from score.

Published · June 11, 2026

Updated · September 1, 2026

Description

A flaw was found in Dulwich, a pure-Python implementation of Git file formats and protocols. A remote attacker could exploit this vulnerability by crafting a malicious commit subject. When the format_patch function processes this subject, it could lead to an arbitrary file write, allowing the attacker to create or overwrite files outside the intended output directory. This could result in unauthorized modification of system files or data.

Statement

This Low impact path traversal vulnerability in Dulwich affects the format_patch function when processing commit subjects. A malicious commit subject containing path separator characters could cause patch files to be written outside the intended output directory. Exploitation requires passing untrusted commit data to the format_patch function.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

CVSS / CWE

CVSS 3.1 · 3.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')