Skip to main content
VulnerabilityPublished Updated

CVE-2026-47712: Breezy · Dulwich doesn't sanitize commit subjects in `porcelain.format_patch`

Affects breezySource GCVE Database

0
Compare
Authoritative record:CVE-2026-47712· Low 3.3

Not known to be exploited · CVSS 3.3 Low : upgrade to 3.3.21_3 when convenient.

Data as of 4 Dec 2026, 20:05 UTC

CVSS 3.1 base score
3.3Low
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.3.21_3, 1.2.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.

What to do

Upgrade breezy to 3.3.21_3; dulwich to 1.2.5.

Affected software

ProductAffectedFixed in
Homebrewbreezypkg:brew/breezyOther threatsAffected
  • >=3.3.13 <3.3.21_3
Fixed in
  • 3.3.21_3
PyPIdulwichpkg:pypi/dulwichOther threatsAffected
  • 0.24.0 – 1.2.4
  • >=0.24.0 <1.2.5
21 affected builds
Fixed in
  • 1.2.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in Breezy version 3.3.21_3. Users should upgrade to this version or later. Until upgrading, users processing untrusted commits with format_patch should either use the stdout=True option to control patch output location, validate resolved patch paths to ensure they remain inside the intended output directory, or pre-screen commit subjects to reject unsafe characters such as /, \, or .. in the first line. These mitigations reduce the risk of path traversal and filename issues.

Description

CVE-2026-47712 is a vulnerability in Breezy's dulwich.porcelain.format_patch function where commit subjects are not properly sanitized when generating patch filenames. This allows malicious commit subjects containing path traversal sequences or illegal filename characters to cause patch files to be written outside the intended output directory or fail on Windows. The issue is fixed in Breezy version 3.3.21_3 by sanitizing commit subjects to safe filename components.

References

Community reviews

Loading reviews…