← Vulnerability feed

Vulnerability record · CVE-2021-3407 · published 23 February 2021

CVE-2021-3407: MuPDF double free during linearization causes memory corruption

Artifex · Mupdf

MuPDF 1.18.0 contains a double free of an object during the linearization process, which can corrupt memory. The flaw is triggered when processing a crafted document, so it matters to anyone who opens untrusted PDFs with MuPDF-based tools.

5.5 CVSS 3.1 Medium EPSS 50% · top 1.1% CWE-415 · Double free
5.5CVSS 3.1 base score, v2 4.3
50%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
14References
17 Jun 2026Last modified by NVD

Description

A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

medium priorityCVSS is medium (5.5) with local access and user interaction required, but the high EPSS percentile and memory-corruption potential justify prompt patching.

What it is

MuPDF 1.18.0 contains a double free of an object during the linearization process, which can corrupt memory. The flaw is triggered when processing a crafted document, so it matters to anyone who opens untrusted PDFs with MuPDF-based tools.

Impact

An attacker can crash the application and potentially achieve memory corruption, though the CVSS vector shows only availability impact. There is no stated confidentiality or integrity impact in the record.

Attack surface

The CVSS vector is local (AV:L) with user interaction required (UI:R) and no privileges needed (PR:N), meaning the victim must open a malicious file with the affected MuPDF build. No remote or unauthenticated network path is described.

Exploitation

CVE-2021-3407 is not listed in CISA KEV and no ransomware use is documented, but EPSS is high at 0.50234 (98.9th percentile). References are vendor advisories and mailing lists with no public exploit tag.

What to do

  • Update MuPDF to a version containing the fix referenced in the Ghostscript git commit cee7cefc610d42fd383b3c80c12cbc675443176a.
  • Apply the Debian, Fedora or Gentoo security updates listed in the references for packaged MuPDF builds.
  • Avoid opening untrusted PDFs with MuPDF-based viewers until patched, or process them in a sandboxed environment.
  • Track the upstream Ghostscript bug 703366 for any further guidance or backports.

Detection

  • Monitor for crashes or abnormal termination of MuPDF-based applications when opening PDF files.
  • Use memory error detection tooling (for example ASan or Valgrind) on MuPDF builds in test environments to catch double-free behavior.
  • Review application logs for repeated failures tied to linearized PDF processing.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-3407 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2021-3407), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.