Division by zero in MuPDF - CVE-2023-51107

 

Division by zero in MuPDF - CVE-2023-51107

Published: November 26, 2025


Vulnerability identifier: #VU118773
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-51107
CWE-ID: CWE-369
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to crash the application.

The vulnerability exists due to a divide by zero error within the compute_color() function in jquant2.c. A remote attacker can trick the victim into opening a specially crafted PDF file and crash the application. 


Affected software

MuPDF
Anolis OS
mupdf
mupdf-devel
mupdf-doc

How to mitigate CVE-2023-51107

Install updates from vendor's website.

mupdf - addressed in versions 1.24.10-1, 1.25.0-1
mupdf-devel - addressed in versions 1.24.10-1, 1.25.0-1
mupdf-doc - addressed in versions 1.24.10-1, 1.25.0-1

External References

Related Security Bulletins