_setimage
src/encode.c
Last patched
Overview
_setimage in src/encode.c (python-pillow/Pillow) was changed by 2 published CVE fixes in 2026, in 3 distinct patches that added or removed 27 lines in total.
python-pillow/Pillow has 110 CVEs with a located fix in total, so 2% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed _setimage, newest first, with the lines each fix touched.
CVE-2026-42311 · lines 272–286 · +10 −14 in 4 hunks
High · CVSS 8.6EPSS 0.1%2026-05-09CVE-2026-25990 · lines 257–258 · +2 −1
High · CVSS 8.6EPSS 0.4%2026-02-11
Get an alert when the next CVE fix lands in python-pillow/Pillow, with the patched functions.
Monitor these CVEsOther functions in these files
Functions in the same file that CVE fixes also changed.
Other hotspots in the repository
Functions in python-pillow/Pillow changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to _setimage.
- How many CVEs have patched _setimage?
- 2 published CVEs changed _setimage in python-pillow/Pillow, in 3 distinct patches totalling 27 changed lines, between 2026 and 2026.
- What is the latest CVE that changed _setimage?
- CVE-2026-42311 (Pillow: OOB Write with Invalid PSD Tile Extents (Integer Overflow)), published 2026-05-09, changed lines 272 to 286 of src/encode.c.
- How does _setimage compare to the rest of python-pillow/Pillow?
- python-pillow/Pillow has 110 CVEs with a located fix in total; 2 of them changed _setimage.
- What do the line numbers refer to?
- Line numbers are in the fixed version of the file, as the upstream patch left it. A CVE whose fix was backported to several branches is listed once, with the lines from the upstream commit.
References
- src/encode.c on GitHub (opens in a new tab)
- All patched functions in python-pillow/Pillow
- Patched functions directory
Fix locations are computed by RadicalNotion.AI from the upstream patch diff of each CVE. CVE data is sourced from the CVE Program.
Track python-pillow/Pillow CVEs
Get an alert when a new CVE lands in this repository, with the patched functions and AI-written remediation guidance.