Double Free in MuPDF - CVE-2021-3407

 

Double Free in MuPDF - CVE-2021-3407

Published: May 26, 2021 / Updated: May 12, 2023


Vulnerability identifier: #VU53600
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-3407
CWE-ID: CWE-415
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error. A remote attacker can create a specially crafted PDF file, trick the victim into opening it, trigger double free error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

MuPDF
Gentoo Linux
Ubuntu
Fedora
zathura-pdf-mupdf
mupdf (Ubuntu package)
mupdf
python-PyMuPDF

How to mitigate CVE-2021-3407

Install update from vendor's website.

zathura-pdf-mupdf - addressed in versions 0.3.6-6.fc32, 0.3.6-6.fc33, 0.3.6-6.fc34
mupdf (Ubuntu package) - addressed in versions 1.7a-1ubuntu0.1~esm1, 1.12.0+ds1-1ubuntu0.1~esm1, 1.16.1+ds1-1ubuntu1+esm1
mupdf - addressed in versions 1.18.0-5.fc32, 1.18.0-5.fc33, 1.18.0-6.fc34
python-PyMuPDF - addressed in versions 1.18.8-2.fc32, 1.18.8-2.fc33, 1.18.8-2.fc34

External References

Related Security Bulletins