<?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-10-04T15:39:35.973332+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-28231</id>
    <title>CVE-2026-28231 — pillow_heif Has Integer Overflow in Encode Path Buffer Validation that Leads to Heap Out-of-Bounds Read</title>
    <updated>2026-10-04T15:39:35.977795+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> bigcat88 pillow_heif</p>
<p>pillow_heif is a Python library for working with HEIF images and plugin for Pillow. Prior to version 1.3.0, an integer overflow in the encode path buffer validation of `_pillow_heif.c` allows an attacker to bypass bounds checks by providing large image dimensions, resulting in a heap out-of-bounds read. This can lead to information disclosure (server heap memory leaking into encoded images) or denial of service (process crash). No special configuration is required — this triggers under default settings. Version 1.3.0 fixes the issue.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-28231"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-5gjj-6r7v-ph3x</id>
    <title>GHSA-5gjj-6r7v-ph3x — pillow-heif: Integer Overflow in Encode Path Buffer Validation Leads to Heap Out-of-Bounds Read</title>
    <updated>2026-10-04T15:39:35.977870+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: pi-heif, PyPI: pillow-heif</p>
<p>### Summary</p>
<p>An integer overflow in the encode path buffer validation of `_pillow_heif.c` allows an attacker to bypass bounds checks by providing large image dimensions, resulting in a heap out-of-bounds read. This can lead to information disclosure (server heap memory leaking into encoded images) or denial of service (process crash). No special configuration is required — this triggers under default settings.</p>
<p>### Details</p>
<p>The buffer validation in `_CtxWriteImage_add_plane()`, `_CtxWriteImage_add_plane_la()`, and `_CtxWriteImage_add_plane_l()` uses 32-bit `int` multiplication to check whether the input buffer is large enough:</p>
<p>```c
// _pillow_heif.c, lines 158, 344, 449
if (stride_in * height &gt; buffer.len) {
    PyBuffer_Release(&amp;buffer);
    PyErr_SetString(PyExc_ValueError, "image plane does not contain enough data");
    return NULL;
}
```</p>
<p>Both `stride_in` and `height` are declared as `int` (32-bit signed). When their product exceeds `INT_MAX` (2,147,483,647), the multiplication overflows before the comparison with `buffer.len` (which is `Py_ssize_t`, 64-bit). The overflowed value wraps to zero or a negative number, causing the bounds check to pass incorrectly.</p>
<p>For example, with `stride_in = 196608` (65536 × 3 for RGB) and `height = 65536`:
- True product: 12,884,901,888
- `int32` product: 0 (wraps around)
- Comparison: `0 &gt; buffer.len` → `false` → check bypassed</p>
<p>After the check is bypassed, the subsequent loop reads beyond the input buffer:</p>
<p>```c
for (int i = 0; i &lt;…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-5gjj-6r7v-ph3x"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/pysec-2026-2248</id>
    <title>PYSEC-2026-2248</title>
    <updated>2026-10-04T15:39:35.977956+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: pi-heif</p>
<p>pillow_heif is a Python library for working with HEIF images and plugin for Pillow. Prior to version 1.3.0, an integer overflow in the encode path buffer validation of `_pillow_heif.c` allows an attacker to bypass bounds checks by providing large image dimensions, resulting in a heap out-of-bounds read. This can lead to information disclosure (server heap memory leaking into encoded images) or denial of service (process crash). No special configuration is required — this triggers under default settings. Version 1.3.0 fixes the issue.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/pysec-2026-2248"/>
  </entry>
</feed>
