PyMuPDF callout stack buffer overflow allows crash or code execution
Python PDF library fed outside input can be hacked.
Summary
PyMuPDF 1.25.3 before 2.0 has a stack buffer overflow in the annotation callout code. If an attacker controls the callout argument, they can crash the process or execute code.
Affected when
- Attacker controls the callout argument of add_freetext_annot()
What to do
Update to PyMuPDF 2.0. The command is python -m pip install --upgrade pymupdf.
Add this line to the config file:
python -m pip install --upgrade pymupdf
A wrong setting can stop the service or lock you out. Check the source links below first.
Products and platforms
CVE IDs
Sources
Times
First published
First seen