<?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>Thu, 01 Oct 2026 10:45:51 +0000</lastBuildDate>
    <item>
      <title>BIT-pillow-2026-59197 — Pillow: Heap out-of-bounds write in Pillow `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`</title>
      <link>https://vulnerability.circl.lu/vuln/bit-pillow-2026-59197</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Bitnami: pillow&lt;/p&gt;
&lt;p&gt;Pillow is a Python imaging library. Prior to 12.3.0, Pillow&amp;#39;s public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Bitnami: pillow&lt;/p&gt;
&lt;p&gt;Pillow is a Python imaging library. Prior to 12.3.0, Pillow&amp;#39;s public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/bit-pillow-2026-59197</guid>
    </item>
    <item>
      <title>CVE-2026-59197 — Pillow: Heap out-of-bounds write in Pillow `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-59197</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; python-pillow Pillow&lt;/p&gt;
&lt;p&gt;Pillow is a Python imaging library. Prior to 12.3.0, Pillow&amp;#39;s public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; python-pillow Pillow&lt;/p&gt;
&lt;p&gt;Pillow is a Python imaging library. Prior to 12.3.0, Pillow&amp;#39;s public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-59197</guid>
    </item>
    <item>
      <title>GHSA-xj96-63gp-2gmr — Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-xj96-63gp-2gmr</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: Pillow&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;Pillow&amp;#39;s public rank-filter API can trigger a native heap out-of-bounds write
when given a very large odd filter size.&lt;/p&gt;
&lt;p&gt;Minimal public API trigger:&lt;/p&gt;
&lt;p&gt;```python
from PIL import Image, ImageFilter&lt;/p&gt;
&lt;p&gt;im = Image.new(&amp;#34;L&amp;#34;, (3, 3), 128)
im.filter(ImageFilter.MedianFilter(4294967295))
```&lt;/p&gt;
&lt;p&gt;`ImageFilter.RankFilter.filter()` calls `image.expand(size // 2, size // 2)`
before rank-filter size validation. With `size = 4294967295`, the
expansion margin is `2147483647` (`INT_MAX`). `ImagingExpand()` then computes
the output dimensions with unchecked signed `int` arithmetic. On tested builds,
this wraps to a tiny output image and the border-expansion loop writes past the
allocation.&lt;/p&gt;
&lt;p&gt;This is reachable through documented public classes (`RankFilter`,
`MedianFilter`, `MinFilter`, and `MaxFilter`). No private API, ctypes, or custom
Python object is needed.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;Current `src/PIL/ImageFilter.py`:&lt;/p&gt;
&lt;p&gt;```python
class RankFilter(Filter):
    def filter(self, image):
        if image.mode == &amp;#34;P&amp;#34;:
            msg = &amp;#34;cannot filter palette images&amp;#34;
            raise ValueError(msg)
        image = image.expand(self.size // 2, self.size // 2)
        return image.rankfilter(self.size, self.rank)
```&lt;/p&gt;
&lt;p&gt;The `expand()` call is made before `image.rankfilter(...)`.&lt;/p&gt;
&lt;p&gt;Current `src/libImaging/Filter.c:ImagingExpand()` does not check output-size
overflow:&lt;/p&gt;
&lt;p&gt;```c
if (xmargin &amp;lt; 0 &amp;amp;&amp;amp; ymargin &amp;lt; 0) {
    return (Imaging)ImagingError_ValueError(&amp;#34;bad kernel size&amp;#34;);
}&lt;/p&gt;
&lt;p&gt;imOut = ImagingNewDirty(
    imIn-&amp;gt;m…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: Pillow&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;Pillow&amp;#39;s public rank-filter API can trigger a native heap out-of-bounds write
when given a very large odd filter size.&lt;/p&gt;
&lt;p&gt;Minimal public API trigger:&lt;/p&gt;
&lt;p&gt;```python
from PIL import Image, ImageFilter&lt;/p&gt;
&lt;p&gt;im = Image.new(&amp;#34;L&amp;#34;, (3, 3), 128)
im.filter(ImageFilter.MedianFilter(4294967295))
```&lt;/p&gt;
&lt;p&gt;`ImageFilter.RankFilter.filter()` calls `image.expand(size // 2, size // 2)`
before rank-filter size validation. With `size = 4294967295`, the
expansion margin is `2147483647` (`INT_MAX`). `ImagingExpand()` then computes
the output dimensions with unchecked signed `int` arithmetic. On tested builds,
this wraps to a tiny output image and the border-expansion loop writes past the
allocation.&lt;/p&gt;
&lt;p&gt;This is reachable through documented public classes (`RankFilter`,
`MedianFilter`, `MinFilter`, and `MaxFilter`). No private API, ctypes, or custom
Python object is needed.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;Current `src/PIL/ImageFilter.py`:&lt;/p&gt;
&lt;p&gt;```python
class RankFilter(Filter):
    def filter(self, image):
        if image.mode == &amp;#34;P&amp;#34;:
            msg = &amp;#34;cannot filter palette images&amp;#34;
            raise ValueError(msg)
        image = image.expand(self.size // 2, self.size // 2)
        return image.rankfilter(self.size, self.rank)
```&lt;/p&gt;
&lt;p&gt;The `expand()` call is made before `image.rankfilter(...)`.&lt;/p&gt;
&lt;p&gt;Current `src/libImaging/Filter.c:ImagingExpand()` does not check output-size
overflow:&lt;/p&gt;
&lt;p&gt;```c
if (xmargin &amp;lt; 0 &amp;amp;&amp;amp; ymargin &amp;lt; 0) {
    return (Imaging)ImagingError_ValueError(&amp;#34;bad kernel size&amp;#34;);
}&lt;/p&gt;
&lt;p&gt;imOut = ImagingNewDirty(
    imIn-&amp;gt;m…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-xj96-63gp-2gmr</guid>
    </item>
    <item>
      <title>PYSEC-2026-3454</title>
      <link>https://vulnerability.circl.lu/vuln/pysec-2026-3454</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: pillow&lt;/p&gt;
&lt;p&gt;Pillow is a Python imaging library. Prior to 12.3.0, Pillow&amp;#39;s public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: pillow&lt;/p&gt;
&lt;p&gt;Pillow is a Python imaging library. Prior to 12.3.0, Pillow&amp;#39;s public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/pysec-2026-3454</guid>
    </item>
  </channel>
</rss>
