Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2021-3500
NixOS vulnerability analysis and mitigation

Overview

A stack overflow vulnerability was discovered in djvulibre version 3.5.28 and earlier, identified as CVE-2021-3500. The flaw exists in the DJVU::DjVuDocument::get_djvu_file() function, which can be triggered via a crafted djvu file. This vulnerability was reported on April 15, 2021, and was assigned by Red Hat, Inc (Red Hat Bug).

Technical details

The vulnerability occurs when djvulibre attempts to open a file inside a djvu file while already opening it, creating an infinite recursive loop that results in a stack overflow. The issue was assigned a CVSS v3.1 base score of 7.8 (High) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The vulnerability is classified as CWE-787 (Out-of-bounds Write) (NVD Database).

Impact

The exploitation of this vulnerability may lead to application crashes and potentially other severe consequences, including the possibility of arbitrary code execution through crafted DjVu files (Debian Advisory).

Exploitability

The vulnerability requires user interaction to open a specially crafted djvu file. The exploit was discovered by 1vanChen from the NSFOCUS Security Team (Red Hat Bug).

Mitigation and workarounds

The vulnerability has been fixed in various distributions: Debian Bullseye (version 3.5.28-2), Debian Buster (version 3.5.27.1-10+deb10u1), Ubuntu 21.04 (version 3.5.28-1ubuntu0.1), Ubuntu 20.04 LTS (version 3.5.27.1-14ubuntu0.1), and Ubuntu 18.04 LTS (version 3.5.27.1-8ubuntu0.3). The fix involves implementing a mechanism to remember which file is being opened to prevent the recursive loop (Ubuntu Security).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Alpine

Fixed

edge

djvulibre: 3.5.28-r1

Fixed

v3.18

djvulibre: 3.5.28-r1

Fixed

v3.19

djvulibre: 3.5.28-r1

Fixed

v3.20

djvulibre: 3.5.28-r1

Fixed

v3.21

djvulibre: 3.5.28-r1

Fixed

v3.22

djvulibre: 3.5.28-r1

Fixed

v3.23

djvulibre: 3.5.28-r1

Fixed

Arch Linux

Fixed

rolling

djvulibre: 3.5.28-3

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-91782LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-91781LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91780LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-91779LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-90831LOW1.9
  • NixOS logoNixOS
  • gcc-toolset-15-binutils-devel
NoYesSep 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management