<?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 01:51:02 +0000</lastBuildDate>
    <item>
      <title>BIT-pillow-2026-55798 — Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path</title>
      <link>https://vulnerability.circl.lu/vuln/bit-pillow-2026-55798</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, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. 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, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. 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-55798</guid>
    </item>
    <item>
      <title>CVE-2026-55798 — Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-55798</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, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. 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, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. This issue is fixed in version 12.3.0.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-55798</guid>
    </item>
    <item>
      <title>GHSA-4x4j-2g7c-83w6 — Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-4x4j-2g7c-83w6</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: Pillow&lt;/p&gt;
&lt;p&gt;### 1. Summary&lt;/p&gt;
&lt;p&gt;`WindowsViewer.get_command()` constructs a `cmd.exe` shell command by directly embedding a
file path into an f-string without escaping. The result is passed to
`subprocess.Popen(..., shell=True)`. Shell metacharacters in the file path — most
importantly a double-quote (`&amp;#34;`) that breaks out of the wrapping, followed by `&amp;amp;` — allow
injection of arbitrary `cmd.exe` commands.&lt;/p&gt;
&lt;p&gt;The macOS equivalent (`MacViewer`) correctly applies `shlex.quote()` to the same parameter.
The Linux equivalent (`UnixViewer`) does likewise. Windows is the only platform missing this
protection, despite `shlex.quote` being **already imported** on line 21 of `ImageShow.py`.&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;### 2. Vulnerable Code&lt;/p&gt;
&lt;p&gt;**File:** `src/PIL/ImageShow.py`, lines 133–150&lt;/p&gt;
&lt;p&gt;```python
class WindowsViewer(Viewer):
    format = &amp;#34;PNG&amp;#34;
    options = {&amp;#34;compress_level&amp;#34;: 1, &amp;#34;save_all&amp;#34;: True}&lt;/p&gt;
&lt;p&gt;def get_command(self, file: str, **options: Any) -&amp;gt; str:
        return (
            f&amp;#39;start &amp;#34;Pillow&amp;#34; /WAIT &amp;#34;{file}&amp;#34; &amp;#39;    # ← f-string, no escaping
            &amp;#34;&amp;amp;&amp;amp; ping -n 4 127.0.0.1 &amp;gt;NUL &amp;#34;
            f&amp;#39;&amp;amp;&amp;amp; del /f &amp;#34;{file}&amp;#34;&amp;#39;                # ← same path, unescaped again
        )&lt;/p&gt;
&lt;p&gt;def show_file(self, path: str, **options: Any) -&amp;gt; int:
        if not os.path.exists(path):
            raise FileNotFoundError
        subprocess.Popen(
            self.get_command(path, **options),
            shell=True,                          # ← shell=True
            creationflags=getattr(subprocess, &amp;#34;CREATE_NO_WINDOW&amp;#34;),
        )  # nos…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: Pillow&lt;/p&gt;
&lt;p&gt;### 1. Summary&lt;/p&gt;
&lt;p&gt;`WindowsViewer.get_command()` constructs a `cmd.exe` shell command by directly embedding a
file path into an f-string without escaping. The result is passed to
`subprocess.Popen(..., shell=True)`. Shell metacharacters in the file path — most
importantly a double-quote (`&amp;#34;`) that breaks out of the wrapping, followed by `&amp;amp;` — allow
injection of arbitrary `cmd.exe` commands.&lt;/p&gt;
&lt;p&gt;The macOS equivalent (`MacViewer`) correctly applies `shlex.quote()` to the same parameter.
The Linux equivalent (`UnixViewer`) does likewise. Windows is the only platform missing this
protection, despite `shlex.quote` being **already imported** on line 21 of `ImageShow.py`.&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;### 2. Vulnerable Code&lt;/p&gt;
&lt;p&gt;**File:** `src/PIL/ImageShow.py`, lines 133–150&lt;/p&gt;
&lt;p&gt;```python
class WindowsViewer(Viewer):
    format = &amp;#34;PNG&amp;#34;
    options = {&amp;#34;compress_level&amp;#34;: 1, &amp;#34;save_all&amp;#34;: True}&lt;/p&gt;
&lt;p&gt;def get_command(self, file: str, **options: Any) -&amp;gt; str:
        return (
            f&amp;#39;start &amp;#34;Pillow&amp;#34; /WAIT &amp;#34;{file}&amp;#34; &amp;#39;    # ← f-string, no escaping
            &amp;#34;&amp;amp;&amp;amp; ping -n 4 127.0.0.1 &amp;gt;NUL &amp;#34;
            f&amp;#39;&amp;amp;&amp;amp; del /f &amp;#34;{file}&amp;#34;&amp;#39;                # ← same path, unescaped again
        )&lt;/p&gt;
&lt;p&gt;def show_file(self, path: str, **options: Any) -&amp;gt; int:
        if not os.path.exists(path):
            raise FileNotFoundError
        subprocess.Popen(
            self.get_command(path, **options),
            shell=True,                          # ← shell=True
            creationflags=getattr(subprocess, &amp;#34;CREATE_NO_WINDOW&amp;#34;),
        )  # nos…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-4x4j-2g7c-83w6</guid>
    </item>
    <item>
      <title>PYSEC-2026-2257</title>
      <link>https://vulnerability.circl.lu/vuln/pysec-2026-2257</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, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. 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, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. This issue is fixed in version 12.3.0.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/pysec-2026-2257</guid>
    </item>
  </channel>
</rss>
