CVE-2021-3407
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory...
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.
- Record
CVE-2021-3407- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-415
- Updated
- 2026-11-02
CVE List
7.8
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.
- Record
CVE-2021-3407- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
EUVDEUVD-2021-26735
7.8
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.
- Record
EUVD-2021-26735- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-5qxg-m35q-xr56
5.5
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory...
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.
- Record
GHSA-5qxg-m35q-xr56- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-119, CWE-415
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-3407
5.5
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.
- Record
ALPINE-CVE-2021-3407- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSV
5.5
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.
- Record
CVE-2021-3407- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-3407
5.5
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.
- Record
DEBIAN-CVE-2021-3407- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-3407
7.8
A flaw was found in mupdf 1.18.0. Double free of object during linearization may lead to memory corruption and other potential consequences.
- Record
UBUNTU-CVE-2021-3407- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUSN-7825-1 No score
mupdf vulnerabilities
It was discovered that MuPDF incorrectly managed memory, resulting in a memory leak. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-1000036)
It was discovered that MuPDF could enter an infinite loop when parsing certain PDF files. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-10289)
It was discovered that MuPDF incorrectly managed memory, possibly leading to a segmentation fault. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-16647, CVE-2018-16648)
It was discovered that MuPDF contained a use-after-free vulnerability. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2020-21896)
It was discovered that MuPDF incorrectly managed memory, resulting in a memory leak. An attacker could possibly use this issue to cause a denial of service or obtain sensitive information. This issue only affected Ubuntu 20.04 LTS. (CVE-2020-26683)
Maxim Mishechkin, Vitalii Akolzin, Shamil Kurmangaleev, Denis Straghkov, Fedor Nis'kov and Ivan Gulakov discovered that MuPDF incorrectly managed memory under certain circumstances, leading to a double-free. An attacker could possibly use this to cause a denial of service. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2021-3407)
Xuwei Liu discovered that MuPDF may perform an out-of-bounds write under certain circumstances. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2021-37220)
- Record
USN-7825-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mupdfAlpine:v3.13 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.14 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.15 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.16 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.17 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.18 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.19 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.20 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.21 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.22 |
before 1.18.0-r1 | 1.18.0-r1 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
mupdfAlpine:v3.23 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfAlpine:v3.24 |
before 1.18.0-r1 | 1.18.0-r1 |
mupdfDebian:12 |
before 1.17.0+ds1-1.3 | 1.17.0+ds1-1.3 |
mupdfDebian:13 |
before 1.17.0+ds1-1.3 | 1.17.0+ds1-1.3 |
mupdfDebian:14 |
before 1.17.0+ds1-1.3 | 1.17.0+ds1-1.3 |
mupdfDebian:9 From an advisory covering 2 CVEs |
before 1.9a+ds1-4+deb9u6, plus listed versions 1.9a+ds1-41.9a+ds1-4+deb9u11.9a+ds1-4+deb9u21.9a+ds1-4+deb9u31.9a+ds1-4+deb9u41.9a+ds1-4+deb9u5 |
1.9a+ds1-4+deb9u6 |
mupdfUbuntu:Pro:16.04:LTS |
before 1.7a-1ubuntu0.1~esm1, plus listed versions 1.7-11.7a-1 |
1.7a-1ubuntu0.1~esm1 |
mupdfUbuntu:Pro:18.04:LTS |
before 1.12.0+ds1-1ubuntu0.1~esm1, plus listed versions 1.11+ds1-1.11.11+ds1-21.12.0+ds1-1 |
1.12.0+ds1-1ubuntu0.1~esm1 |
mupdfUbuntu:Pro:20.04:LTS |
before 1.16.1+ds1-1ubuntu1+esm1, plus listed versions 1.15.0+ds1-11.16.1+ds1-1ubuntu1 |
1.16.1+ds1-1ubuntu1+esm1 |
mupdfUbuntu:Pro:16.04:LTS From an advisory covering 8 CVEs |
before 1.7a-1ubuntu0.1~esm1, plus listed versions 1.7-11.7a-1 |
1.7a-1ubuntu0.1~esm1 |
mupdfUbuntu:Pro:18.04:LTS From an advisory covering 8 CVEs |
before 1.12.0+ds1-1ubuntu0.1~esm1, plus listed versions 1.11+ds1-1.11.11+ds1-21.12.0+ds1-1 |
1.12.0+ds1-1ubuntu0.1~esm1 |
mupdfUbuntu:Pro:20.04:LTS From an advisory covering 8 CVEs |
before 1.16.1+ds1-1ubuntu1+esm1, plus listed versions 1.15.0+ds1-11.16.1+ds1-1ubuntu1 |
1.16.1+ds1-1ubuntu1+esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-3407 is a medium vulnerability (CVSS 5.5) in Artifex Mupdf, published February 23, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 50.2%, the 98th percentile. Fixed in mupdf 1.18.0-r1.
References
git.ghostscript.com?p=mupdf.git%3Bh=cee7cefc610d42fd383b3c80c12cbc675443176a
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCADE3VSPWCGTE5BV4KL273R5VK3GDKM
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M44PNYCBL33OD7GC75XNE6CDS4VSGVWO
lists.debian.org/debian-lts-announce/2021/03/msg00012.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZLC6MPH7YS6JPU427XOFRLF3KKZQUZJN
security.gentoo.org/glsa/202105-30
Show 19 moreShow less
bugs.ghostscript.com/show_bug.cgi?id=703366
nvd.nist.gov/vuln/detail/CVE-2021-3407
git.ghostscript.com?p=mupdf.git;h=cee7cefc610d42fd383b3c80c12cbc675443176a
lists.fedoraproject.org/archives/list/[email protected]/message/LCADE3VSPWCGTE5BV4KL273R5VK3GDKM
lists.fedoraproject.org/archives/list/[email protected]/message/M44PNYCBL33OD7GC75XNE6CDS4VSGVWO
lists.fedoraproject.org/archives/list/[email protected]/message/ZLC6MPH7YS6JPU427XOFRLF3KKZQUZJN
github.com/advisories/GHSA-5qxg-m35q-xr56
security.alpinelinux.org/vuln/CVE-2021-3407
security-tracker.debian.org/tracker/CVE-2021-3407
ubuntu.com/security/CVE-2021-3407
cve.org/CVERecord?id=CVE-2021-3407
ubuntu.com/security/notices/USN-7825-1
ubuntu.com/security/CVE-2018-10289
ubuntu.com/security/CVE-2018-16647
ubuntu.com/security/CVE-2018-16648
ubuntu.com/security/CVE-2018-1000036
ubuntu.com/security/CVE-2020-21896
ubuntu.com/security/CVE-2020-26683
ubuntu.com/security/CVE-2021-37220