Advisory record · GHSA-555p-6grf-mh7f

Dulwich doesn't sanitize commit subjects in `porcelain.format_patch`

CVSS 3.3 LowEPSS 0.0014 · 3rd percentile

Published by the GitHub Advisory Database at 8 Jun 2026, 23:04 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
dulwichPyPI>=0.24.0, <1.2.51.2.5
Identifiers
GHSA-555p-6grf-mh7f · CVE-2026-47712 · PYSEC-2026-2462
Weakness (CWE)
CWE-22
Published
8 Jun 2026
Updated
13 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Dulwich versions from 0.24.0 before 1.2.5 are affected. In porcelain.format_patch, a commit subject containing path separators or parent-directory components could cause the generated patch file to be written outside the requested output directory. An attacker who can supply commits to a service that runs format_patch on untrusted repositories could write files within that process's permissions. Upgrade to Dulwich 1.2.5, which fixes this. Until then, avoid passing untrusted commits to format_patch or use stdout output.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
3.3 Low 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0014, the 3rd percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:01 UTC First seen by agentprime
  2. 31 Oct 2026, 15:01 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.