Bug 2578293 - CVE-2026-112902 python-pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags [fedora-44]
Summary: CVE-2026-112902 python-pillow: Memory disclosure and segfault in libtiff enco...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pillow
Version: 44
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Sandro Mani
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["e7501934-4217-4da6-86af-e...
Depends On:
Blocks: CVE-2026-112902
TreeView+ depends on / blocked
 
Reported: 2026-11-20 14:15 UTC by jkelly
Modified: 2026-12-01 01:04 UTC (History)
4 users (show)

Fixed In Version: python-pillow-12.3.0-8.fc45
Clone Of:
Environment:
Last Closed: 2026-12-01 01:04:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description jkelly 2026-11-20 14:15:25 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

This is a high-severity Pillow security advisory for CVE-2026-112902. A malicious TIFF (or EXIF metadata in a JPEG/PNG/WebP) can cause Pillow to leak process memory or crash when the image is re-saved as a TIFF.

Pillow incorrectly forwards unknown TIFF tags to libtiff, assuming its own registration controls how libtiff interprets the arguments. It does not; libtiff uses its built-in definition for known tags.

As a result, a tiny crafted file—about 356 bytes in the reproducer—can make Pillow copy up to attacker-chosen amounts of worker-process memory into the output TIFF, or trigger a segmentation fault.

The vulnerable code path is triggered by an ordinary Image.open() followed by im.save(fp, "TIFF"), especially when the source image is compressed and therefore uses libtiff.

## Impact
Confidentiality: Memory contents can be disclosed in the saved TIFF metadata; the report says this can expose data from Python, libc, libtiff, libjpeg, and other linked libraries, potentially defeating ASLR.

Availability: Certain crafted tags cause a deterministic worker crash (SIGSEGV) from a sub-1 KB upload.

Scope: Services that accept image uploads and convert or re-save them as TIFF are most exposed; JPEG/PNG/WebP EXIF metadata preserved during TIFF conversion can also trigger it.

The advisory found only out-of-bounds reads, not writes.

Affected versions and fix
Item	Detail
Package	Pillow (pip)
Vulnerable versions	12.3.0 and earlier
Fixed version	13.0.0
Severity	High, CVSS v4 8.7/10
CVE / GHSA	CVE-2026-112902 / GHSA-xvh5-g6gv-559v

Upgrade Pillow to 13.0.0 or later as soon as possible. If immediate upgrade is not possible, avoid accepting and re-encoding untrusted images as TIFF, and do not pass untrusted tiffinfo/EXIF metadata into TIFF saves.

Comment 1 Fedora Update System 2026-11-27 01:21:30 UTC
FEDORA-2026-bb35de8eba (python-pillow-12.3.0-8.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-bb35de8eba

Comment 2 Fedora Update System 2026-11-27 01:21:32 UTC
FEDORA-2026-ba4d311d1e (python-pillow-12.3.0-8.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-ba4d311d1e

Comment 3 Fedora Update System 2026-11-28 04:00:06 UTC
FEDORA-2026-ba4d311d1e has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-ba4d311d1e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-ba4d311d1e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2026-11-28 04:20:54 UTC
FEDORA-2026-bb35de8eba has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-bb35de8eba`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-bb35de8eba

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-12-01 01:04:22 UTC
FEDORA-2026-ba4d311d1e (python-pillow-12.3.0-8.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.