<?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-29T05:25:36.313696+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-59203</id>
    <title>CVE-2026-59203 — Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service</title>
    <updated>2026-09-29T05:25:36.346179+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 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImagePlugin.py accepts a negative byte count in the %%BeginBinary directive, allowing a crafted EPS file to cause Image.open() to seek backwards to the same directive and parse it repeatedly in an infinite loop. This issue is fixed in version 12.3.0.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-59203"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-pg7v-jwj7-p798</id>
    <title>GHSA-pg7v-jwj7-p798 — Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service</title>
    <updated>2026-09-29T05:25:36.346284+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 EPS parser (PIL/EpsImagePlugin.py) accepts a negative byte count in the %%BeginBinary directive. A crafted EPS file can cause Image.open() to seek backwards to the same directive and parse it repeatedly, resulting in an infinite loop and CPU denial of service.</p>
<p>The issue is triggered during Image.open(), does not require Image.load(), and does not require Ghostscript execution.</p>
<p>Confirmed affected versions: Pillow 12.0.0 through 12.2.0.</p>
<p>### Details</p>
<p>The issue is in the EPS parser in PIL/EpsImagePlugin.py. When parsing an EPS %%BeginBinary directive, Pillow reads the byte count from the file and passes it directly to a relative seek operation without validating that the value is non-negative.</p>
<p>Relevant code:</p>
<p>elif bytes_mv[:14] == b"%%BeginBinary:":
        bytecount = int(byte_arr[14:bytes_read])
        self.fp.seek(bytecount, os.SEEK_CUR)</p>
<p>There is no validation that bytecount is non-negative.</p>
<p>If an attacker provides a negative value such as %%BeginBinary:-18, the parser moves the file pointer backwards from the end of the directive line to the same line region. The next parser iteration reads the same %%BeginBinary:-18 directive again, performs the same backward seek, and repeats indefinitely. This causes Image.open() to hang in an infinite loop and consume CPU.</p>
<p>In local testing, the issue is present in Pillow 12.0.0, 12.1.0, 12.1.1, and 12.2.0. Pillow 11.3.0 did not hang with the same PoC, so this appears to affect the 12.x EPS parsing path.…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-pg7v-jwj7-p798"/>
  </entry>
</feed>
