rewrite_pages
src/PIL/PdfParser.py
Last patched
Overview
rewrite_pages in src/PIL/PdfParser.py (python-pillow/Pillow) was changed by 1 published CVE fix in 2026, in 1 distinct patch that added or removed 4 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 rewrite_pages, newest first, with the lines each fix touched.
CVE-2026-112406 · lines 505–507 · +3 −1
High · CVSS 8.7EPSS 0.6%2026-10-19
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
- 3read_prev_trailersrc/PIL/PdfParser.py2 patches · 1 CVE2026
- 4read_pdf_infosrc/PIL/PdfParser.py2 patches · 1 CVE2026
- 5decodesrc/PIL/PdfParser.py2 patches · 1 CVE2026
- 6read_indirectsrc/PIL/PdfParser.py1 patch · 1 CVE2026
- 7__init__src/PIL/PdfParser.py1 patch · 1 CVE2026
- 8get_valuesrc/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 rewrite_pages.
- How many CVEs have patched rewrite_pages?
- 1 published CVEs changed rewrite_pages in python-pillow/Pillow, in 1 distinct patches totalling 4 changed lines, between 2026 and 2026.
- What is the latest CVE that changed rewrite_pages?
- CVE-2026-112406 (Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle), published 2026-10-19, changed lines 505 to 507 of src/PIL/PdfParser.py.
- How does rewrite_pages compare to the rest of python-pillow/Pillow?
- python-pillow/Pillow has 110 CVEs with a located fix in total; 1 of them changed rewrite_pages.
- 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.