<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T18:03:39.996130+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-59198</id>
    <title>CVE-2026-59198 — Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images</title>
    <updated>2026-09-29T18:03:40.007407+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> python-pillow Pillow</p>
<p>Pillow is a Python imaging library. From 5.2.0 until 12.3.0, Pillow's TGA RLE encoder reads past its packed row buffer when saving a mode 1 image with TGA RLE compression, allowing adjacent process heap bytes to be copied into the generated TGA file. This issue is fixed in version 12.3.0.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-59198"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-fj7v-r99m-22gq</id>
    <title>GHSA-fj7v-r99m-22gq — Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images</title>
    <updated>2026-09-29T18:03:40.007524+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: Pillow</p>
<p>### Summary</p>
<p>Pillow's TGA RLE encoder reads past its row buffer when saving a mode `"1"`
image. Adjacent process heap bytes can be copied into the generated TGA file.</p>
<p>The bug is reachable through the public save API:</p>
<p>```python
im.save(out, format="TGA", compression="tga_rle")
```</p>
<p>Older affected Pillow versions use the equivalent public option `rle=True`.</p>
<p>For mode `"1"`, Pillow allocates a packed row buffer of `ceil(width / 8)`
bytes, but `ImagingTgaRleEncode()` treats the row as one full byte per pixel.</p>
<p>The maximum valid TGA width is `65535`. At that width:</p>
<p>```text
allocated packed row buffer: 8192 bytes
encoder byte-offset walk:     65535 bytes
maximum OOB window per row:   57343 bytes
```</p>
<p>On non-ASAN Pillow `12.2.0`, the public-only maximum-width PoC below serialized
`57297` bytes from distinct out-of-bounds source offsets into one returned TGA,
covering `99.92%` of the maximum adjacent heap window. No heap grooming, ctypes,
private API, or malformed input file was used. The disclosure is emitted across
many TGA packet payload copies of at most `128` bytes each, not one large
`memcpy()`.</p>
<p>### Details</p>
<p>`src/PIL/TgaImagePlugin.py` allows mode `"1"` TGA output and selects the
`tga_rle` encoder when RLE compression is requested.</p>
<p>`src/encode.c:_setimage()` allocates the row buffer using the packed-bit
formula:</p>
<p>```c
state-&gt;bytes = (state-&gt;bits * state-&gt;xsize + 7) / 8;
state-&gt;buffer = (UINT8 *)calloc(1, state-&gt;bytes);
```</p>
<p>For mode `"1"`, `state-&gt;bits == 1`.</p>
<p>`src/libIma…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-fj7v-r99m-22gq"/>
  </entry>
</feed>
