CVE-2021-46312
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a...
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- 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
6.5
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.
- Record
CVE-2021-46312- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-369
- Updated
- 2026-11-02
CVE List No score
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.
- Record
CVE-2021-46312- Updated
- 2026-11-02
EUVDEUVD-2021-33001 No score
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.
- Record
EUVD-2021-33001- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-mqm4-pwjf-gw24
6.5
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a...
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.
- Record
GHSA-mqm4-pwjf-gw24- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-369
- Updated
- 2026-11-02
OSV
6.5
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.
- Record
CVE-2021-46312- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-46312
6.5
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.
- Record
DEBIAN-CVE-2021-46312- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVOESA-2023-1641
6.5
djvulibre security update
DjVu is a set of compression technologies, a file format, and a software platform for the deliveryover the Web of digital documents, scanned documents, and high resolution images.DjVu documents download and display extremely quickly, and look exactly the same on all platforms with no compatibility problems due to fonts, colors, etc. DjVu can be seen as a superior alternative to PDF and PostScript for digital documents, to TIFF (and PDF) for scanned bitonal documents, to JPEG and JPEG2000 for photographs and pictures, and to GIF for large palettized images. DjVu is the only Web format that is practical for distributing high-resolution scanned documents in color.
Security Fix(es):
An issue was discovered IW44Image.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.(CVE-2021-46310)
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.(CVE-2021-46312)
- Record
OESA-2023-1641- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVROOT-OS-DEBIAN-12-CVE-2021-46312
6.5
CVE-2021-46312 in djvulibre - Patched by Root
Root has patched CVE-2021-46312 in the djvulibre package for Root:Debian:12. Multiple fixed versions available.
- Record
ROOT-OS-DEBIAN-12-CVE-2021-46312- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-46312
6.5
An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.
- Record
UBUNTU-CVE-2021-46312- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2024-0183 No score
Updated djvulibre packages fix security vulnerabilities
An issue was discovered IW44Image.cpp in djvulibre 3.5.28 in allows attackers to cause a denial of service via divide by zero.
- Record
MGASA-2024-0183- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13178-1 No score
djvulibre-3.5.28-6.1 on GA media
These are all security issues fixed in the djvulibre-3.5.28-6.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13178-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:3520-1 No score
Security update for djvulibre
This update for djvulibre fixes the following issues:
- CVE-2021-46310: Fixed divide by zero in IW44Image.cpp (bsc#1214670).
- CVE-2021-46312: Fixed divide by zero in IW44EncodeCodec.cpp (bsc#1214672).
- Record
SUSE-SU-2023:3520-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:3755-1 No score
Security update for djvulibre
This update for djvulibre fixes the following issues:
- CVE-2021-46310: Fixed divide by zero in IW44Image.cpp (bsc#1214670).
- CVE-2021-46312: Fixed divide by zero in IW44EncodeCodec.cpp (bsc#1214672).
- CVE-2021-32490: Fixed out of bounds write in function DJVU:filter_bv() via crafted djvu file (bsc#1185895).
- Record
SUSE-SU-2023:3755-1- Updated
- 2026-11-02
OSVUSN-8054-1 No score
djvulibre vulnerabilities
It was discovered that DjVuLibre could be forced to execute a division by zero in certain instances. A remote attacker could possibly use this issue to cause applications to stop responding or crash, resulting in a denial of service. (CVE-2021-46312)
It was discovered that DjVuLibre incorrectly handled certain memory operations. If a user or automated system were tricked into processing a specially crafted DjVu file, a remote attacker could cause applications to stop responding or crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2025-53367)
- Record
USN-8054-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
djvulibreDebian:12 |
before 3.5.28-2.2~deb12u1, plus listed versions 3.5.28-23.5.28-2.13.5.28-2.1~deb12u13.5.28-2.2~deb11u1 |
3.5.28-2.2~deb12u1 |
djvulibreDebian:13 |
before 3.5.28-2.2 | 3.5.28-2.2 |
djvulibreDebian:14 |
before 3.5.28-2.2 | 3.5.28-2.2 |
djvulibreDebian:11 From an advisory covering 3 CVEs |
before 3.5.28-2.2~deb11u1, plus listed versions 3.5.28-23.5.28-2.13.5.28-2.1~deb12u1 |
3.5.28-2.2~deb11u1 |
djvulibreMageia:9 From an advisory covering 2 CVEs |
before 3.5.28-5.1.mga9 | 3.5.28-5.1.mga9 |
djvulibreopenEuler:20.03-LTS-SP1 From an advisory covering 2 CVEs |
before 3.5.27-18.oe1 | 3.5.27-18.oe1 |
djvulibreopenEuler:20.03-LTS-SP3 From an advisory covering 2 CVEs |
before 3.5.27-20.oe1 | 3.5.27-20.oe1 |
djvulibreopenEuler:22.03-LTS From an advisory covering 2 CVEs |
before 3.5.27-19.oe2203sp2 | 3.5.27-19.oe2203sp2 |
djvulibreopenEuler:22.03-LTS-SP1 From an advisory covering 2 CVEs |
before 3.5.27-19.oe2203sp1 | 3.5.27-19.oe2203sp1 |
djvulibreopenEuler:22.03-LTS-SP2 From an advisory covering 2 CVEs |
before 3.5.27-19.oe2203sp2 | 3.5.27-19.oe2203sp2 |
Show 15 moreShow less
| Package | Affected | Fixed |
|---|---|---|
djvulibreSUSE:Linux Enterprise Module for Desktop Applications 15 SP4 From an advisory covering 2 CVEs |
before 3.5.27-150200.11.14.1 | 3.5.27-150200.11.14.1 |
djvulibreSUSE:Linux Enterprise Module for Desktop Applications 15 SP5 From an advisory covering 2 CVEs |
before 3.5.27-150200.11.14.1 | 3.5.27-150200.11.14.1 |
djvulibreSUSE:Linux Enterprise Module for Package Hub 15 SP4 From an advisory covering 2 CVEs |
before 3.5.27-150200.11.14.1 | 3.5.27-150200.11.14.1 |
djvulibreSUSE:Linux Enterprise Module for Package Hub 15 SP5 From an advisory covering 2 CVEs |
before 3.5.27-150200.11.14.1 | 3.5.27-150200.11.14.1 |
djvulibreopenSUSE:Leap 15.4 From an advisory covering 2 CVEs |
before 3.5.27-150200.11.14.1 | 3.5.27-150200.11.14.1 |
djvulibreopenSUSE:Leap 15.5 From an advisory covering 2 CVEs |
before 3.5.27-150200.11.14.1 | 3.5.27-150200.11.14.1 |
djvulibreSUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 3 CVEs |
before 3.5.25.3-5.22.1 | 3.5.25.3-5.22.1 |
djvulibreSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 3 CVEs |
before 3.5.25.3-5.22.1 | 3.5.25.3-5.22.1 |
djvulibreSUSE:Linux Enterprise Server for SAP Applications 12 SP5 From an advisory covering 3 CVEs |
before 3.5.25.3-5.22.1 | 3.5.25.3-5.22.1 |
djvulibreUbuntu:Pro:16.04:LTS |
before 3.5.27.1-5ubuntu0.1+esm3, plus listed versions 3.5.27.1-33.5.27.1-43.5.27.1-53.5.27.1-5ubuntu0.13.5.27.1-5ubuntu0.1+esm13.5.27.1-5ubuntu0.1+esm2 |
3.5.27.1-5ubuntu0.1+esm3 |
djvulibreUbuntu:Pro:18.04:LTS |
before 3.5.27.1-8ubuntu0.4+esm1, plus listed versions 3.5.27.1-73.5.27.1-83.5.27.1-8ubuntu0.13.5.27.1-8ubuntu0.23.5.27.1-8ubuntu0.33.5.27.1-8ubuntu0.4 |
3.5.27.1-8ubuntu0.4+esm1 |
djvulibreUbuntu:Pro:20.04:LTS |
before 3.5.27.1-14ubuntu0.1+esm1, plus listed versions 3.5.27.1-133.5.27.1-13ubuntu13.5.27.1-143.5.27.1-14build13.5.27.1-14ubuntu0.1 |
3.5.27.1-14ubuntu0.1+esm1 |
djvulibreUbuntu:22.04:LTS |
before 3.5.28-2ubuntu0.22.04.2, plus listed versions 3.5.28-2build13.5.28-2build23.5.28-2ubuntu0.22.04.1 |
3.5.28-2ubuntu0.22.04.2 |
djvulibreUbuntu:24.04:LTS |
before 3.5.28-2ubuntu0.24.04.2, plus listed versions 3.5.28-2build33.5.28-2build43.5.28-2ubuntu0.24.04.1 |
3.5.28-2ubuntu0.24.04.2 |
djvulibreopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 3.5.28-6.1 | 3.5.28-6.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-46312 is a medium vulnerability (CVSS 6.5) in Djvulibre Project Djvulibre, published August 22, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.04%, the 64th percentile. Fixed in djvulibre 3.5.28-2.2~deb12u1.
References
sourceforge.net/p/djvu/bugs/344
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4APFAWR7QE27GXQMRKR6XKNZWWUJ5YMH
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XEEGAR4WUF6LTOJEHSON7I2MBTPFTVR5
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HN4JOIBNMJMW2NQSGT6DCDCQZJ2ROFM7
lists.debian.org/debian-lts-announce/2025/07/msg00007.html
lists.fedoraproject.org/archives/list/[email protected]/message/HN4JOIBNMJMW2NQSGT6DCDCQZJ2ROFM7
Show 21 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/XEEGAR4WUF6LTOJEHSON7I2MBTPFTVR5
nvd.nist.gov/vuln/detail/CVE-2021-46312
github.com/advisories/GHSA-mqm4-pwjf-gw24
security-tracker.debian.org/tracker/CVE-2021-46312
advisories.mageia.org/MGASA-2024-0183.html
bugs.mageia.org/show_bug.cgi?id=33221
lists.fedoraproject.org/archives/list/[email protected]/message/4APFAWR7QE27GXQMRKR6XKNZWWUJ5YMH
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1641
nvd.nist.gov/vuln/detail/CVE-2021-46310
suse.com/support/update/announcement/2023/suse-su-20233520-1
bugzilla.suse.com/1214670
bugzilla.suse.com/1214672
suse.com/security/cve/CVE-2021-46310
suse.com/security/cve/CVE-2021-46312
suse.com/support/update/announcement/2023/suse-su-20233755-1
bugzilla.suse.com/1185895
suse.com/security/cve/CVE-2021-32490
ubuntu.com/security/CVE-2021-46312
cve.org/CVERecord?id=CVE-2021-46312
ubuntu.com/security/notices/USN-8054-1
ubuntu.com/security/CVE-2025-53367