public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pillow] f43: Backport fix for CVE-2026-112900
Date: Sat, 31 Oct 2026 11:28:06 GMT [thread overview]
Message-ID: <179344608609.1.8072362970737866550.rpms-python-pillow-1a44fb6b3807@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-pillow
Branch : f43
Commit : 1a44fb6b3807e820ced311aadb51852ea62164a7
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-10-31T09:44:40+01:00
Stats : +48/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pillow/c/1a44fb6b3807e820ced311aadb51852ea62164a7?branch=f43
Log:
Backport fix for CVE-2026-112900
(cherry picked from commit 85d85bd9c4d909299a63adb43bec13e0bc02d85c)
---
diff --git a/CVE-2026-112900.patch b/CVE-2026-112900.patch
new file mode 100644
index 0000000..02bbd75
--- /dev/null
+++ b/CVE-2026-112900.patch
@@ -0,0 +1,41 @@
+diff -rupN --no-dereference Pillow-12.3.0/src/PIL/EpsImagePlugin.py Pillow-12.3.0-new/src/PIL/EpsImagePlugin.py
+--- Pillow-12.3.0/src/PIL/EpsImagePlugin.py 2026-07-01 11:09:01.000000000 +0200
++++ Pillow-12.3.0-new/src/PIL/EpsImagePlugin.py 2026-10-30 09:54:54.446084723 +0100
+@@ -97,7 +97,10 @@ def Ghostscript(
+
+ infile_temp = None
+ if hasattr(fp, "name") and os.path.exists(fp.name):
+- infile = fp.name
++ # Make the path absolute so that a filename beginning with "-" or "@"
++ # can never be interpreted by Ghostscript's argument parser
++ # as an option or an @-file token
++ infile = os.path.abspath(fp.name)
+ else:
+ in_fd, infile_temp = tempfile.mkstemp()
+ os.close(in_fd)
+diff -rupN --no-dereference Pillow-12.3.0/Tests/test_file_eps.py Pillow-12.3.0-new/Tests/test_file_eps.py
+--- Pillow-12.3.0/Tests/test_file_eps.py 2026-07-01 11:09:01.000000000 +0200
++++ Pillow-12.3.0-new/Tests/test_file_eps.py 2026-10-30 09:54:54.445887338 +0100
+@@ -303,6 +303,22 @@ def test_image_mode_not_supported(tmp_pa
+
+
+ @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
++def test_filename_not_parsed_as_ghostscript_argument(
++ tmp_path: Path, monkeypatch: pytest.MonkeyPatch
++) -> None:
++ # Check that a filename starting with "-" is not passed to Ghostscript unmodified
++ # If it was, the help functionality would be triggered instead
++ monkeypatch.chdir(tmp_path)
++ name = "-h"
++ with open(name, "wb") as f:
++ f.write(b"\n".join(simple_eps_file))
++
++ with Image.open(name) as im:
++ im.load()
++ assert im.size == (100, 100)
++
++
++@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
+ @skip_unless_feature("zlib")
+ def test_render_scale1() -> None:
+ # We need png support for these render test
diff --git a/python-pillow.spec b/python-pillow.spec
index 255d3af..79ddf39 100644
--- a/python-pillow.spec
+++ b/python-pillow.spec
@@ -18,7 +18,7 @@
Name: python-%{srcname}
Version: 11.3.0
-Release: 13%{?dist}
+Release: 14%{?dist}
Summary: Python image processing library
# License: see http://www.pythonware.com/products/pil/license.htm
@@ -53,6 +53,9 @@ Patch10: CVE-2026-112393.patch
# Backport fix for CVE-2026-112403
# https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75
Patch11: CVE-2026-112403.patch
+# Backport fix for CVE-2026-112900
+# https://github.com/python-pillow/Pillow/commit/a2c363141da31a265dd536c945677db4b64f3ec9
+Patch12: CVE-2026-112900.patch
BuildRequires: freetype-devel
BuildRequires: gcc
@@ -331,6 +334,9 @@ popd
%changelog
+* Fri Oct 30 2026 Sandro Mani <manisandro@gmail.com> - 11.3.0-14
+- Backport fix for CVE-2026-112900
+
* Wed Oct 28 2026 Sandro Mani <manisandro@gmail.com> - 11.3.0-13
- Backport fix for CVE-2026-112403
reply other threads:[~2026-10-31 11:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179344608609.1.8072362970737866550.rpms-python-pillow-1a44fb6b3807@fedoraproject.org \
--to=manisandro@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox