<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 29 Sep 2026 03:07:43 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-47712 — Dulwich doesn't sanitize commit subjects in `porcelain.format_patch`</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-47712</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; jelmer dulwich&lt;/p&gt;
&lt;p&gt;Dulwich is a pure-Python implementation of the Git file formats and protocols. Starting in version 0.24.0 and prior to version 1.2.5, dulwich.porcelain.format_patch(outdir=...) derives each patch filename from the commit&amp;#39;s subject line. Prior to this fix, get_summary only replaced spaces with dashes - path separators (/, \), parent-directory components (..), and other filename-hostile characters (e.g. :) were preserved verbatim and passed straight into os.path.join(outdir, f&amp;#34;{i:04d}-{summary}.patch&amp;#34;). A malicious commit subject could therefore direct the generated patch file outside the requested outdir. This is fixed in Dulwich 1.2.5. Users should upgrade to 1.2.5 or later. dulwich.patch.get_summary now mirrors git&amp;#39;s format_sanitized_subject: only `[A-Za-z0-9._]` are kept, runs of other characters collapse to a single -, consecutive . collapse to a single ., trailing ./- are stripped, and the result is length-limited. This makes the returned string safe to embed as a filename component, so format_patch can no longer be steered out of outdir via the commit subject. Until upgrading, callers that pass untrusted commits to   porcelain.format_patch can use stdout=True and write the patch to a destination they control, rather than letting format_patch choose the filename; validate the chosen path before opening - e.g. compare os.path.realpath(returned_path) against  os.path.realpath(outdir) and reject any patch whose resolved path is not inside outdir; and/or pre-screen commits a…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; jelmer dulwich&lt;/p&gt;
&lt;p&gt;Dulwich is a pure-Python implementation of the Git file formats and protocols. Starting in version 0.24.0 and prior to version 1.2.5, dulwich.porcelain.format_patch(outdir=...) derives each patch filename from the commit&amp;#39;s subject line. Prior to this fix, get_summary only replaced spaces with dashes - path separators (/, \), parent-directory components (..), and other filename-hostile characters (e.g. :) were preserved verbatim and passed straight into os.path.join(outdir, f&amp;#34;{i:04d}-{summary}.patch&amp;#34;). A malicious commit subject could therefore direct the generated patch file outside the requested outdir. This is fixed in Dulwich 1.2.5. Users should upgrade to 1.2.5 or later. dulwich.patch.get_summary now mirrors git&amp;#39;s format_sanitized_subject: only `[A-Za-z0-9._]` are kept, runs of other characters collapse to a single -, consecutive . collapse to a single ., trailing ./- are stripped, and the result is length-limited. This makes the returned string safe to embed as a filename component, so format_patch can no longer be steered out of outdir via the commit subject. Until upgrading, callers that pass untrusted commits to   porcelain.format_patch can use stdout=True and write the patch to a destination they control, rather than letting format_patch choose the filename; validate the chosen path before opening - e.g. compare os.path.realpath(returned_path) against  os.path.realpath(outdir) and reject any patch whose resolved path is not inside outdir; and/or pre-screen commits a…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-47712</guid>
    </item>
    <item>
      <title>GHSA-555p-6grf-mh7f — Dulwich doesn't sanitize commit subjects in `porcelain.format_patch`</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-555p-6grf-mh7f</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: dulwich&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;dulwich.porcelain.format_patch(outdir=...) derives each patch filename from the commit&amp;#39;s subject line. Prior to this fix, get_summary only replaced spaces with dashes - path separators (/, \),   parent-directory components (..), and   other filename-hostile characters (e.g. :)  were preserved verbatim and passed   straight into os.path.join(outdir,   f&amp;#34;{i:04d}-{summary}.patch&amp;#34;).&lt;/p&gt;
&lt;p&gt;A malicious commit subject could therefore direct the generated patch file outside the requested outdir. Reduced examples:&lt;/p&gt;
&lt;p&gt;- x/../../x produced &amp;lt;outdir&amp;gt;/0001-x/../../x.patch, resolving
  two directories above outdir.
- x\..\..\x produced the equivalent escape on Windows, here \ is also a path separator.&lt;/p&gt;
&lt;p&gt;Related issues from the same root cause:&lt;/p&gt;
&lt;p&gt;- Subjects containing characters that are illegal in Windows filenames (e.g. :) caused format_patch to fail outright on  Windows, where git would have succeeded.
- Very long subjects produced excessively long filenames that could exceed filesystem limits; git truncates them.&lt;/p&gt;
&lt;p&gt;Anyone calling porcelain.format_patch (or the dulwich format-patch CLI) against untrusted commits - for example, a service that runs format-patch over user-supplied repositories or pull requests - could have patch files written to attacker-chosen locations within the process&amp;#39;s write permissions.&lt;/p&gt;
&lt;p&gt;### Patches&lt;/p&gt;
&lt;p&gt;Fixed in Dulwich 1.2.5. Users should upgrade.&lt;/p&gt;
&lt;p&gt;dulwich.patch.get_summary now mirrors git&amp;#39;s format_sanitized_subject: only `[A-Za-z0-9._]` are kept, runs of other char…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: dulwich&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;dulwich.porcelain.format_patch(outdir=...) derives each patch filename from the commit&amp;#39;s subject line. Prior to this fix, get_summary only replaced spaces with dashes - path separators (/, \),   parent-directory components (..), and   other filename-hostile characters (e.g. :)  were preserved verbatim and passed   straight into os.path.join(outdir,   f&amp;#34;{i:04d}-{summary}.patch&amp;#34;).&lt;/p&gt;
&lt;p&gt;A malicious commit subject could therefore direct the generated patch file outside the requested outdir. Reduced examples:&lt;/p&gt;
&lt;p&gt;- x/../../x produced &amp;lt;outdir&amp;gt;/0001-x/../../x.patch, resolving
  two directories above outdir.
- x\..\..\x produced the equivalent escape on Windows, here \ is also a path separator.&lt;/p&gt;
&lt;p&gt;Related issues from the same root cause:&lt;/p&gt;
&lt;p&gt;- Subjects containing characters that are illegal in Windows filenames (e.g. :) caused format_patch to fail outright on  Windows, where git would have succeeded.
- Very long subjects produced excessively long filenames that could exceed filesystem limits; git truncates them.&lt;/p&gt;
&lt;p&gt;Anyone calling porcelain.format_patch (or the dulwich format-patch CLI) against untrusted commits - for example, a service that runs format-patch over user-supplied repositories or pull requests - could have patch files written to attacker-chosen locations within the process&amp;#39;s write permissions.&lt;/p&gt;
&lt;p&gt;### Patches&lt;/p&gt;
&lt;p&gt;Fixed in Dulwich 1.2.5. Users should upgrade.&lt;/p&gt;
&lt;p&gt;dulwich.patch.get_summary now mirrors git&amp;#39;s format_sanitized_subject: only `[A-Za-z0-9._]` are kept, runs of other char…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-555p-6grf-mh7f</guid>
    </item>
    <item>
      <title>PYSEC-2026-2462 — Dulwich doesn't sanitize commit subjects in `porcelain.format_patch`</title>
      <link>https://vulnerability.circl.lu/vuln/pysec-2026-2462</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: dulwich&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;dulwich.porcelain.format_patch(outdir=...) derives each patch filename from the commit&amp;#39;s subject line. Prior to this fix, get_summary only replaced spaces with dashes - path separators (/, \),   parent-directory components (..), and   other filename-hostile characters (e.g. :)  were preserved verbatim and passed   straight into os.path.join(outdir,   f&amp;#34;{i:04d}-{summary}.patch&amp;#34;).&lt;/p&gt;
&lt;p&gt;A malicious commit subject could therefore direct the generated patch file outside the requested outdir. Reduced examples:&lt;/p&gt;
&lt;p&gt;- x/../../x produced &amp;lt;outdir&amp;gt;/0001-x/../../x.patch, resolving
  two directories above outdir.
- x\..\..\x produced the equivalent escape on Windows, here \ is also a path separator.&lt;/p&gt;
&lt;p&gt;Related issues from the same root cause:&lt;/p&gt;
&lt;p&gt;- Subjects containing characters that are illegal in Windows filenames (e.g. :) caused format_patch to fail outright on  Windows, where git would have succeeded.
- Very long subjects produced excessively long filenames that could exceed filesystem limits; git truncates them.&lt;/p&gt;
&lt;p&gt;Anyone calling porcelain.format_patch (or the dulwich format-patch CLI) against untrusted commits - for example, a service that runs format-patch over user-supplied repositories or pull requests - could have patch files written to attacker-chosen locations within the process&amp;#39;s write permissions.&lt;/p&gt;
&lt;p&gt;### Patches&lt;/p&gt;
&lt;p&gt;Fixed in Dulwich 1.2.5. Users should upgrade.&lt;/p&gt;
&lt;p&gt;dulwich.patch.get_summary now mirrors git&amp;#39;s format_sanitized_subject: only `[A-Za-z0-9._]` are kept, runs of other char…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: dulwich&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;dulwich.porcelain.format_patch(outdir=...) derives each patch filename from the commit&amp;#39;s subject line. Prior to this fix, get_summary only replaced spaces with dashes - path separators (/, \),   parent-directory components (..), and   other filename-hostile characters (e.g. :)  were preserved verbatim and passed   straight into os.path.join(outdir,   f&amp;#34;{i:04d}-{summary}.patch&amp;#34;).&lt;/p&gt;
&lt;p&gt;A malicious commit subject could therefore direct the generated patch file outside the requested outdir. Reduced examples:&lt;/p&gt;
&lt;p&gt;- x/../../x produced &amp;lt;outdir&amp;gt;/0001-x/../../x.patch, resolving
  two directories above outdir.
- x\..\..\x produced the equivalent escape on Windows, here \ is also a path separator.&lt;/p&gt;
&lt;p&gt;Related issues from the same root cause:&lt;/p&gt;
&lt;p&gt;- Subjects containing characters that are illegal in Windows filenames (e.g. :) caused format_patch to fail outright on  Windows, where git would have succeeded.
- Very long subjects produced excessively long filenames that could exceed filesystem limits; git truncates them.&lt;/p&gt;
&lt;p&gt;Anyone calling porcelain.format_patch (or the dulwich format-patch CLI) against untrusted commits - for example, a service that runs format-patch over user-supplied repositories or pull requests - could have patch files written to attacker-chosen locations within the process&amp;#39;s write permissions.&lt;/p&gt;
&lt;p&gt;### Patches&lt;/p&gt;
&lt;p&gt;Fixed in Dulwich 1.2.5. Users should upgrade.&lt;/p&gt;
&lt;p&gt;dulwich.patch.get_summary now mirrors git&amp;#39;s format_sanitized_subject: only `[A-Za-z0-9._]` are kept, runs of other char…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/pysec-2026-2462</guid>
    </item>
  </channel>
</rss>
