read_prev_trailer
src/PIL/PdfParser.py
Last patched
Overview
read_prev_trailer in src/PIL/PdfParser.py (python-pillow/pillow) was changed by 1 published CVE fix in 2026, in 2 distinct patches that added or removed 20 lines in total.
python-pillow/pillow has 110 CVEs with a located fix in total, so 1% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed read_prev_trailer, newest first, with the lines each fix touched.
CVE-2026-42310 · lines 688–709 · +16 −4 in 4 hunks
Medium · CVSS 5.1EPSS 0.2%2026-05-09
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.
- 1linearize_page_treesrc/PIL/PdfParser.py3 patches · 2 CVEs2026
- 2next_object_idsrc/PIL/PdfParser.py2 patches · 2 CVEs2021 to 2026
- 3decodesrc/PIL/PdfParser.py2 patches · 1 CVE2026
- 4read_pdf_infosrc/PIL/PdfParser.py2 patches · 1 CVE2026
- 5get_valuesrc/PIL/PdfParser.py1 patch · 1 CVE2026
- 6read_indirectsrc/PIL/PdfParser.py1 patch · 1 CVE2026
- 7rewrite_pagessrc/PIL/PdfParser.py1 patch · 1 CVE2026
- 8__init__src/PIL/PdfParser.py1 patch · 1 CVE2026
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 read_prev_trailer.
- How many CVEs have patched read_prev_trailer?
- 1 published CVEs changed read_prev_trailer in python-pillow/pillow, in 2 distinct patches totalling 20 changed lines, between 2026 and 2026.
- What is the latest CVE that changed read_prev_trailer?
- CVE-2026-42310 (Pillow: PDF Parsing Trailer Infinite Loop (DoS)), published 2026-05-09, changed lines 688 to 709 of src/PIL/PdfParser.py.
- How does read_prev_trailer compare to the rest of python-pillow/pillow?
- python-pillow/pillow has 110 CVEs with a located fix in total; 1 of them changed read_prev_trailer.
- 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/PIL/PdfParser.py 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.