CVE-2021-45343
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an...
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an attacker to crash the application using a crafted DXF 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
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an attacker to crash the application using a crafted DXF document.
- Record
CVE-2021-45343- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-476
- Updated
- 2026-11-02
CVE List No score
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an attacker to crash the application using a crafted DXF document.
- Record
CVE-2021-45343- Updated
- 2026-11-02
EUVDEUVD-2021-32116 No score
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an attacker to crash the application using a crafted DXF document.
- Record
EUVD-2021-32116- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xcgm-pvwf-mjq7
5.5
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an...
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an attacker to crash the application using a crafted DXF document.
- Record
GHSA-xcgm-pvwf-mjq7- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
OSV
5.5
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an attacker to crash the application using a crafted DXF document.
- Record
CVE-2021-45343- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-45343
5.5
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an attacker to crash the application using a crafted DXF document.
- Record
DEBIAN-CVE-2021-45343- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-45343
5.5
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an attacker to crash the application using a crafted DXF document.
- Record
UBUNTU-CVE-2021-45343- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2022-0151 No score
Updated libdxfrw packages fix security vulnerability
A code execution vulnerability exists in the dwgCompressor::decompress18() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dwg file can lead to an out-of-bounds write. An attacker can provide a malicious file to trigger this vulnerability. (CVE-2021-21898)
A code execution vulnerability exists in the dwgCompressor::copyCompBytes21 functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dwg file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability. (CVE-2021-21899)
A code execution vulnerability exists in the dxfRW::processLType() functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dxf file can lead to a use-after-free vulnerability. An attacker can provide a malicious file to trigger this vulnerability. (CVE-2021-21900)
In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an attacker to crash the application using a crafted DXF document. (CVE-2021-45343)
- Record
MGASA-2022-0151- 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 |
libdxfrwMageia:8 From an advisory covering 4 CVEs |
before 1.0.1-1.1.mga8 | 1.0.1-1.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 5 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 |
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-45343 is a medium vulnerability (CVSS 5.5) in Librecad, published January 25, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.90%, the 59th percentile. Fixed in librecad 2.1.3-3.
References
github.com/LibreCAD/LibreCAD/issues/1468
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-45343
Show 20 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/VUMH3CWGVSMR2UIZEA35Q5UB7PDVVVYS
lists.fedoraproject.org/archives/list/[email protected]/message/FCC2FZ6HZOIK3775K4MTCOUHX6PLGPEL
github.com/advisories/GHSA-xcgm-pvwf-mjq7
security-tracker.debian.org/tracker/CVE-2021-45343
advisories.mageia.org/MGASA-2022-0151.html
bugs.mageia.org/show_bug.cgi?id=29720
lists.fedoraproject.org/archives/list/[email protected]/thread/RDI3HCTCACMIC7I4ILB3NRU6DCMADI5H
debian.org/lts/security/2021/dla-2838
lists.fedoraproject.org/archives/list/[email protected]/thread/VUMH3CWGVSMR2UIZEA35Q5UB7PDVVVYS
lists.opensuse.org/archives/list/[email protected]/thread/6TWLTKRSHNPCLQL7UXQSITHNYJT5XSK5
ubuntu.com/security/CVE-2021-45343
github.com/LibreCAD/LibreCAD/pull/1469
ubuntu.com/security/notices/USN-5957-1
cve.org/CVERecord?id=CVE-2021-45343
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-45342