CVE-2021-45342
NixOS vulnerability analysis and mitigation

Overview

A buffer overflow vulnerability was discovered in the CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older versions. The vulnerability was assigned CVE-2021-45342 and was publicly disclosed in December 2021. The issue affects all versions of LibreCAD up to and including version 2.2.0-rc3 (GitHub Issue).

Technical details

The vulnerability exists in the CDataList entity deserialization functionality within LibreCAD's jwwlib component. Specifically, in the CDataList::Serialize() function, a fixed-size buffer of 512 bytes is declared, but no bounds checking is performed when reading data into this buffer. The CDataList entity provides its own size field, allowing an attacker to specify a size larger than the allocated buffer, resulting in a stack buffer overflow condition (GitHub Issue). The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

When successfully exploited, this vulnerability allows an attacker to achieve Remote Code Execution (RCE) through a specially crafted JWW document. The attacker can gain control over the execution flow with direct control of the instruction pointer (EIP), enabling the execution of arbitrary code with the privileges of the current user (GitHub Issue).

Mitigation and workarounds

The vulnerability has been fixed in subsequent releases of LibreCAD. Various distributions have released security updates to address this issue: Debian has fixed it in versions 2.1.3-1.2+deb10u1 for Buster and 2.1.3-1.3+deb11u1 for Bullseye (Debian Security), Fedora has addressed it in version 2.2.0-0.15.rc4.fc35 (Fedora Update), and Gentoo has fixed it in version 2.1.3-r7 (Gentoo Security).

Additional resources


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-22783HIGH8.1
  • NixOSNixOS
  • iris
NoYesJan 12, 2026
CVE-2026-0821MEDIUM6.9
  • NixOSNixOS
  • quickjs
NoNoJan 10, 2026
CVE-2025-68949MEDIUM5.3
  • NixOSNixOS
  • n8n
NoYesJan 13, 2026
CVE-2026-22784LOW2.3
  • NixOSNixOS
  • lychee
NoYesJan 12, 2026
CVE-2026-23497LOW1.3
  • NixOSNixOS
  • learning
NoYesJan 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