Double Free in MuPDF - CVE-2021-3407
Published: May 26, 2021 / Updated: May 12, 2023
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
Gentoo Linux
Ubuntu
Fedora
zathura-pdf-mupdf
mupdf (Ubuntu package)
mupdf
python-PyMuPDF
How to mitigate CVE-2021-3407
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
- http://git.ghostscript.com/?p=mupdf.git;h=cee7cefc610d42fd383b3c80c12cbc675443176a
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M44PNYCBL33OD7GC75XNE6CDS4VSGVWO/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LCADE3VSPWCGTE5BV4KL273R5VK3GDKM/
- https://lists.debian.org/debian-lts-announce/2021/03/msg00012.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLC6MPH7YS6JPU427XOFRLF3KKZQUZJN/
- https://security.gentoo.org/glsa/202105-30