CVE-2021-3630
Medium · 5.5CVSS
5.5
EPSS
1.0%
Published
Jun 30, 2021
CISA due date
—
Cloudanix analysis
A flaw in a document library can make programs crash when they try to open certain specially made image files, interrupting work that relies on those programs.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds write in DJVU::DjVuTXT::decode() triggered by a specially crafted DJVU file, resulting in memory corruption that manifests as a crash or segmentation fault.
Why it matters to the business
Processing of untrusted document files can cause application or service crashes, leading to denial of service and potential loss of availability for document-handling workflows.
How an attack unfolds
An attacker creates a malformed DJVU file that exercises the vulnerable decode path, then delivers the file to a target system where it is opened by software using an affected DjVuLibre version; the library performs the out-of-bounds write and terminates.
How to fix it
Upgrade DjVuLibre to version 3.5.28 or later on all affected systems; rebuild or reinstall dependent packages on Debian and Fedora after the library update.
How to confirm the fix worked
Confirm installed DjVuLibre version is at least 3.5.28; attempt to open a known-triggering test file in a controlled environment and verify no crash occurs.
Typical attack path
- Craft a malicious DJVU file containing oversized or malformed text chunks
- Deliver the file via email, download, or shared storage
- Victim application opens or renders the file using the vulnerable library
- Decode routine writes beyond allocated buffer bounds
- Process crashes with segmentation fault
How to detect it
Review application and system logs for segmentation faults or crashes occurring during DJVU file processing; correlate crash reports with recent receipt of DJVU attachments or files.
What your security team should do
- Prioritize patching DjVuLibre and dependent packages on all systems that handle untrusted DJVU files
- Restrict opening of DJVU files from untrusted sources until updates are applied
- Monitor vendor advisories for downstream package updates in Debian and Fedora
The record
An out-of-bounds write vulnerability was found in DjVuLibre in DJVU::DjVuTXT::decode() in DjVuText.cpp via a crafted djvu file which may lead to crash and segmentation fault. This flaw affects DjVuLibre versions prior to 3.5.28.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | djvulibre | 0 | 3.5.27.1-10+deb10u1 |
| Debian:11 | djvulibre | 0 | 3.5.27.1-12 |
| Debian:12 | djvulibre | 0 | 3.5.27.1-12 |
| Debian:13 | djvulibre | 0 | 3.5.27.1-12 |
| Debian:9 | djvulibre | 0 | 3.5.27.1-7+deb9u2 |
| SUSE:Enterprise Storage 6 | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:HPE Helion OpenStack 8 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Linux Enterprise High Performance Computing 15-LTSS | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP2 | djvulibre | 0 | 3.5.27-11.11.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | djvulibre | 0 | 3.5.27-11.11.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP2 | djvulibre | 0 | 3.5.27-11.11.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP3 | djvulibre | 0 | 3.5.27-11.11.1 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | djvulibre | 0 | 3.5.21-3.15.1 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | djvulibre | 0 | 3.5.21-3.18.1 |
| SUSE:Linux Enterprise Server 11 SP4-LTSS | djvulibre | 0 | 3.5.21-3.15.1 |
| SUSE:Linux Enterprise Server 11 SP4-LTSS | djvulibre | 0 | 3.5.21-3.18.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Linux Enterprise Server 12 SP3-BCL | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Linux Enterprise Server 12 SP3-LTSS | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Linux Enterprise Server 12 SP5 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Linux Enterprise Server 15-LTSS | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Linux Enterprise Server for SAP Applications 15 | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:Manager Proxy 4.0 | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Manager Retail Branch Server 4.0 | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:Manager Server 4.0 | djvulibre | 0 | 3.5.27-3.19.1 |
| SUSE:OpenStack Cloud 8 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:OpenStack Cloud 9 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:OpenStack Cloud Crowbar 8 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| SUSE:OpenStack Cloud Crowbar 9 | djvulibre | 0 | 3.5.25.3-5.19.2 |
| Ubuntu:18.04:LTS | djvulibre | 0 | 3.5.27.1-8ubuntu0.4 |
| Ubuntu:20.04:LTS | djvulibre | 0 | 3.5.27.1-14ubuntu0.1 |
| Ubuntu:Pro:16.04:LTS | djvulibre | 0 | 3.5.27.1-5ubuntu0.1+esm2 |
| openSUSE:Leap 15.2 | djvulibre | 0 | 3.5.27-lp152.7.9.1 |
| openSUSE:Leap 15.3 | djvulibre | 0 | 3.5.27-11.11.1 |
Related vulnerabilities
- CVE-2021-32490 A flaw was found in djvulibre-3.5.28 and earlier. Also affects djvulibre
- CVE-2021-46312 An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5.28 in allows attackers to… Also affects djvulibre
- CVE-2021-46310 An issue was discovered IW44Image.cpp in djvulibre 3.5.28 in allows attackers to cause a… Also affects djvulibre
- CVE-2026-111497 A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli… CWE-787
- CVE-2026-112397 Pillow is a Python imaging library. CWE-787
- CVE-2026-112059 libLAS through 1.8.1 contains a heap out-of-bounds write vulnerability in the point… CWE-787
- CVE-2026-89088 A flaw was found in parted. CWE-787
- CVE-2026-89085 A flaw was found in parted. CWE-787