CVE-2026-112902: Pillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to TIFFSetField() that do not match libtiff’s definition of the correspo
Published 2026-11-05 · Updated 2026-11-17 · Also known as BIT-pillow-2026-112902, GHSA-xvh5-g6gv-559v, PYSEC-2026-4363
Summary
Pillow versions through 12.3.0 contain a critical memory safety vulnerability in the libtiff encoder that allows for information disclosure and process crashes. Users of the Pillow library should upgrade to version 13.0.0 immediately to mitigate this risk.
Who is affected
The vulnerability occurs when the libtiff encoder passes mismatched arguments to TIFFSetField(), triggered when an application saves attacker-controlled image metadata. This can lead to invalid memory reads, leaking process memory into the encoded output or resulting in a denial-of-service via process crash. It is particularly relevant for applications that re-save compressed TIFF images or perform conversions that preserve EXIF metadata into compressed TIFF format.
Exploitability
The vulnerability carries a high severity score of 9.1, indicating that it is remotely exploitable without requiring privileges or user interaction. While the EPSS score of 0.006 suggests a low current probability of exploitation, it is not currently listed on the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the Pillow package to version 13.0.0 or higher.
- Verify that your dependency management system (e.g., requirements.txt, pyproject.toml, or lockfiles) is updated to include the fixed version.
How to check your project
- Check the project's dependency lockfile (e.g., poetry.lock, requirements.txt, or pip freeze) for pillow versions between 0 and 12.3.0.
- Use software composition analysis (SCA) tools like Safety, Snyk, or GitHub Dependabot to identify the presence of the affected Pillow version in the environment.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | pillow |
>= 0, < 13.0.0 | 13.0.0 | python -m pip install 'pillow>=13.0.0' |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | None |
| Availability | High |
FAQ
Does this vulnerability allow for arbitrary code execution?
The description specifies invalid memory reads and potential process crashes, which can lead to information disclosure, but it does not explicitly confirm arbitrary code execution.
Is there a workaround if I cannot upgrade immediately?
Not documented. The provided information only mentions the fix available in version 13.0.0.
What specifically triggers this issue?
The issue is triggered when an application processes attacker-controlled image metadata, specifically during the re-saving of compressed TIFF images or through conversions that preserve EXIF metadata.
Original advisory description
References
- ADVISORY https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- FIX https://github.com/python-pillow/Pillow/commit/570df030c0d30c2bf5336b2ab59f3902d8ab0b6d
- FIX https://github.com/python-pillow/Pillow/pull/10227
- FIX https://github.com/python-pillow/Pillow/security/advisories/GHSA-xvh5-g6gv-559v
Source records: PYSEC-2026-4363 (OSV.dev) · EPSS by FIRST, 2026-11-26.