Medium
Security advisory
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-4216
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:38 UTC · Revision 1
Source evidence
A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.
osv:CVE-2021-4216
Complete source record
{
"id": "a91d648440ea3cb95aebb0cba495259399acf2f8b8fd2054bf88a57659260b8a",
"url": "https://osv.dev/vulnerability/CVE-2021-4216",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-4216",
"summary": "A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upstream.",
"evidence": "osv:CVE-2021-4216",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-4216",
"aliases": [
"CVE-2021-4216"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/artifexsoftware/mupdf",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a5de2ca97a8bb3255f72b0f79a4a1d89688bb0ff"
},
{
"fixed": "22c47acbd52949421f8c7cb46ea1556827d0fcbf"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:artifex:mupdf:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.20.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "22c47acbd52949421f8c7cb46ea1556827d0fcbf"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.19.0-rc1-so-3.12.7",
"1.19.0-rc1",
"1.18.1-so-3.12.6",
"1.18.1-so-3.12.4",
"1.18.1-so-3.12.2b1-android",
"1.18.1-so-3.12.2b1-ios",
"1.18.1-so-3.12.1-android",
"1.18.1-so-3.12.1-ios",
"1.18.0",
"1.18.0-rc1",
"1.17.0-rc1",
"1.16.1",
"1.16.1-epub-prerelease",
"1.16.0-rc2",
"1.16.0",
"1.16.0-rc1",
"1.15.0-rc1",
"1.15.0",
"1.14.0",
"1.14.0-rc1",
"1.13.0-rc1",
"1.13.0",
"1.12.0",
"1.11.1",
"1.11",
"1.11-rc1",
"1.10",
"1.10-rc2",
"1.10-rc1",
"1.9a",
"1.9",
"1.9-rc2",
"1.9-rc1",
"1.8",
"1.7a",
"1.7",
"1.7-rc1",
"1.6-appstore",
"1.6-ios-rc2",
"1.6-ios-rc1",
"android-release-60",
"1.6",
"1.5-ios-rc8",
"1.5-ios-appstore",
"1.5-ios-rc7",
"1.5-ios-rc6",
"1.5-ios",
"1.5",
"1.4-ios",
"1.4",
"1.3rc1",
"1.2",
"1.1-forms-tech-preview",
"1.0",
"1.0rc1",
"0.9",
"0.8",
"0.7",
"0.6",
"0.5",
"0.4",
"0.3",
"0.2",
"0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4216.json",
"vanir_signatures": [
{
"id": "CVE-2021-4216-3487da7d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"148428731875479396939769254416903401659",
"334154895119732715934329687386372964908",
"271578754670549623668636309170831988566",
"183537282055440426407130261521748130023",
"21263257204605018599019492831581804131"
]
},
"source": "https://github.com/artifexsoftware/mupdf/commit/22c47acbd52949421f8c7cb46ea1556827d0fcbf",
"target": {
"file": "source/tools/muraster.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-4216-53f23848",
"digest": {
"length": 1679,
"function_hash": "21006412885745212366555215011289400705"
},
"source": "https://github.com/artifexsoftware/mupdf/commit/22c47acbd52949421f8c7cb46ea1556827d0fcbf",
"target": {
"file": "source/tools/muraster.c",
"function": "initialise_banding"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:08:53Z"
}
}
],
"modified": "2026-10-20T14:08:53.111171060Z",
"provider": "osv",
"references": [
"https://bugs.ghostscript.com/show_bug.cgi?id=704834",
"https://github.com/ArtifexSoftware/mupdf/commit/22c47acbd52949421f8c7cb46ea1556827d0fcbf"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-4216",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388592,
"published_at": "2022-08-26T16:15:09.82+00:00"
}