CVE-2021-45342
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and...
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document.
- Record
CVE-2021-45342- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-120
- Updated
- 2026-11-02
CVE List No score
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document.
- Record
CVE-2021-45342- Updated
- 2026-11-02
EUVDEUVD-2021-32115 No score
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document.
- Record
EUVD-2021-32115- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-jvxq-fmg4-p4w2
7.8
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and...
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document.
- Record
GHSA-jvxq-fmg4-p4w2- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-120
- Updated
- 2026-11-02
OSV
7.8
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document.
- Record
CVE-2021-45342- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-45342
7.8
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document.
- Record
DEBIAN-CVE-2021-45342- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2021-45342
7.8
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document.
- Record
UBUNTU-CVE-2021-45342- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2022-0152 No score
Updated librecad packages fix security vulnerability
A buffer overflow vulnerability in CDataMoji of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document. (CVE-2021-45341)
A buffer overflow vulnerability in CDataList of the jwwlib component of LibreCAD 2.2.0-rc3 and older allows an attacker to achieve Remote Code Execution using a crafted JWW document. (CVE-2021-45342)
- Record
MGASA-2022-0152- Updated
- 2026-11-02
OSVopenSUSE-SU-2022:0143-1 No score
Security update for librecad
This update for librecad fixes the following issues:
- CVE-2021-45341: Fixed a buffer overflow vulnerability in LibreCAD that allowed an attacker to achieve remote code execution via a crafted JWW document [boo#1195105]
- CVE-2021-45342: Fixed a buffer overflow vulnerability in jwwlib in LibreCAD allows an attacker to achieve remote code execution via a crafted JWW document [boo#1195122]
- Record
openSUSE-SU-2022:0143-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2022:10002-1 No score
Security update for librecad
This update for librecad fixes the following issues:
-
CVE-2021-45341: Fixed a buffer overflow vulnerability in LibreCAD allows an attacker to achieve remote code execution via a crafted JWW document [boo#1195105]
-
CVE-2021-45342: Fixed a buffer overflow vulnerability in jwwlib in LibreCAD allows an attacker to achieve remote code execution via a crafted JWW document [boo#1195122]
-
Strip excess blank fields from librecad.desktop:MimeType [boo#1197664]
Update to 2.2.0-rc3
- major release
- DWG imports are more reliable now
- and a lot more of bugfixes and improvements
- Record
openSUSE-SU-2022:10002-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12082-1 No score
librecad-2.2.0~rc3-7.1 on GA media
These are all security issues fixed in the librecad-2.2.0~rc3-7.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12082-1- Updated
- 2026-11-02
OSVUSN-5957-1 No score
librecad vulnerabilities
Cody Sixteen discovered that LibreCAD incorrectly handled memory when parsing DXF files. An attacker could use this issue to cause LibreCAD to crash, leading to a denial of service. This issue only affected Ubuntu 16.04 ESM and Ubuntu 18.04 ESM. (CVE-2018-19105)
Lilith of Cisco Talos discovered that LibreCAD incorrectly handled memory when parsing DWG files. An attacker could use this issue to cause LibreCAD to crash, leading to a denial of service, or possibly execute arbitrary code. (CVE-2021-21898, CVE-2021-21899)
Lilith of Cisco Talos discovered that LibreCAD incorrectly handled memory when parsing DRW files. An attacker could use this issue to cause LibreCAD to crash, leading to a denial of service, or possibly execute arbitrary code. (CVE-2021-21900)
Albin Eldstål-Ahrens discovered that LibreCAD incorrectly handled memory when parsing JWW files. An attacker could use this issue to cause LibreCAD to crash, leading to a denial of service, or possibly execute arbitrary code. (CVE-2021-45341, CVE-2021-45342)
Albin Eldstål-Ahrens discovered that LibreCAD incorrectly handled memory when parsing DXF files. An attacker could use this issue to cause LibreCAD to crash, leading to a denial of service. (CVE-2021-45343)
- Record
USN-5957-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
librecadDebian:12 |
before 2.1.3-3 | 2.1.3-3 |
librecadDebian:13 |
before 2.1.3-3 | 2.1.3-3 |
librecadDebian:14 |
before 2.1.3-3 | 2.1.3-3 |
librecadDebian:9 From an advisory covering 3 CVEs |
before 2.1.2-1+deb9u3, plus listed versions 2.1.2-12.1.2-1+deb9u12.1.2-1+deb9u2 |
2.1.2-1+deb9u3 |
librecadDebian:10 From an advisory covering 6 CVEs |
before 2.1.3-1.2+deb10u1, plus listed versions 2.1.3-1.2 |
2.1.3-1.2+deb10u1 |
librecadDebian:11 From an advisory covering 6 CVEs |
before 2.1.3-1.3+deb11u1, plus listed versions 2.1.3-1.3 |
2.1.3-1.3+deb11u1 |
librecadMageia:8 From an advisory covering 2 CVEs |
before 2.2.0-0.rc3.1.mga8 | 2.2.0-0.rc3.1.mga8 |
librecadUbuntu:Pro:16.04:LTS |
before 2.0.9-2ubuntu0.1~esm1, plus listed versions 2.0.4-1build12.0.8-12.0.9-2 |
2.0.9-2ubuntu0.1~esm1 |
librecadUbuntu:18.04:LTS |
before 2.1.2-1ubuntu0.1, plus listed versions 2.1.2-1 |
2.1.2-1ubuntu0.1 |
librecadUbuntu:Pro:18.04:LTS |
before 2.1.2-1ubuntu0.1~esm1, plus listed versions 2.1.2-1 |
2.1.2-1ubuntu0.1~esm1 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
librecadUbuntu:20.04:LTS |
before 2.1.3-1.2+deb10u1build0.20.04.1, plus listed versions 2.1.3-1.22.1.3-1.2build1 |
2.1.3-1.2+deb10u1build0.20.04.1 |
librecadUbuntu:22.04:LTS |
before 2.1.3-3, plus listed versions 2.1.3-1.3 |
2.1.3-3 |
librecadUbuntu:Pro:16.04:LTS From an advisory covering 7 CVEs |
before 2.0.9-2ubuntu0.1~esm1, plus listed versions 2.0.4-1build12.0.8-12.0.9-2 |
2.0.9-2ubuntu0.1~esm1 |
librecadUbuntu:Pro:18.04:LTS From an advisory covering 7 CVEs |
before 2.1.2-1ubuntu0.1~esm1, plus listed versions 2.1.2-1 |
2.1.2-1ubuntu0.1~esm1 |
librecadUbuntu:20.04:LTS From an advisory covering 7 CVEs |
before 2.1.3-1.2+deb10u1build0.20.04.1, plus listed versions 2.1.3-1.22.1.3-1.2build1 |
2.1.3-1.2+deb10u1build0.20.04.1 |
librecadSUSE:Package Hub 15 SP3 From an advisory covering 2 CVEs |
before 2.2.0~rc3-bp153.2.9.1 | 2.2.0~rc3-bp153.2.9.1 |
librecadopenSUSE:Leap 15.3 From an advisory covering 2 CVEs |
before 2.2.0~rc3-bp153.2.9.1 | 2.2.0~rc3-bp153.2.9.1 |
libdxfrwSUSE:Package Hub 15 SP4 From an advisory covering 2 CVEs |
before 1.0.1+git.20220109-bp154.2.3.1 | 1.0.1+git.20220109-bp154.2.3.1 |
librecadSUSE:Package Hub 15 SP4 From an advisory covering 2 CVEs |
before 2.2.0~rc3-bp154.3.3.1 | 2.2.0~rc3-bp154.3.3.1 |
libdxfrwopenSUSE:Leap 15.4 From an advisory covering 2 CVEs |
before 1.0.1+git.20220109-bp154.2.3.1 | 1.0.1+git.20220109-bp154.2.3.1 |
librecadopenSUSE:Leap 15.4 From an advisory covering 2 CVEs |
before 2.2.0~rc3-bp154.3.3.1 | 2.2.0~rc3-bp154.3.3.1 |
librecadopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 2.2.0~rc3-7.1 | 2.2.0~rc3-7.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-45342 is a high vulnerability (CVSS 7.8) in Librecad, published January 25, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.93%, the 80th percentile. Fixed in librecad 2.1.3-3.
References
github.com/LibreCAD/LibreCAD/issues/1464
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VUMH3CWGVSMR2UIZEA35Q5UB7PDVVVYS
debian.org/security/2022/dsa-5077
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FCC2FZ6HZOIK3775K4MTCOUHX6PLGPEL
security.gentoo.org/glsa/202305-26
nvd.nist.gov/vuln/detail/CVE-2021-45342
Show 25 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/VUMH3CWGVSMR2UIZEA35Q5UB7PDVVVYS
lists.fedoraproject.org/archives/list/[email protected]/message/FCC2FZ6HZOIK3775K4MTCOUHX6PLGPEL
github.com/advisories/GHSA-jvxq-fmg4-p4w2
security-tracker.debian.org/tracker/CVE-2021-45342
advisories.mageia.org/MGASA-2022-0152.html
bugs.mageia.org/show_bug.cgi?id=29996
debian.org/lts/security/2022/dla-2908
lists.fedoraproject.org/archives/list/[email protected]/thread/MBLTKH2Q6OBOLSNHIKPW74SFFSC5A2BB
ubuntu.com/security/CVE-2021-45342
github.com/LibreCAD/LibreCAD/pull/1465
ubuntu.com/security/notices/USN-5957-1
cve.org/CVERecord?id=CVE-2021-45342
ubuntu.com/security/CVE-2018-19105
ubuntu.com/security/CVE-2021-21898
ubuntu.com/security/CVE-2021-21899
ubuntu.com/security/CVE-2021-21900
ubuntu.com/security/CVE-2021-45341
ubuntu.com/security/CVE-2021-45343
lists.opensuse.org/archives/list/[email protected]/thread/H67WLPQ3LF4GRKIXDOTJFA2DT732SNIG
bugzilla.suse.com/1195105
bugzilla.suse.com/1195122
suse.com/security/cve/CVE-2021-45341
suse.com/security/cve/CVE-2021-45342
lists.opensuse.org/archives/list/[email protected]/thread/6KTACJSABEKBQTYYPFKDEOPJ4JOG4FBE
bugzilla.suse.com/1197664