Bug 2578293

Summary: CVE-2026-112902 python-pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags [fedora-44]
Product: [Fedora] Fedora Reporter: jkelly <jkelly>
Component: python-pillowAssignee: Sandro Mani <manisandro>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 44CC: epel-packagers-sig, infra-sig, manisandro, python-packagers-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["e7501934-4217-4da6-86af-ec7096237460"]}
Fixed In Version: python-pillow-12.3.0-8.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-12-01 01:04:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2565602    

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.