Every CVE Search/ Get API key

CVE-2021-45343

In LibreCAD 2.2.0, a NULL pointer dereference in the HATCH handling of libdxfrw allows an...

5.5 MediumFix available

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

0.90%Up 0.5 points since Jan 25, 2022
90%50%10%1%

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 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
librecad
Debian:12
before 2.1.3-3
2.1.3-3
librecad
Debian:13
before 2.1.3-3
2.1.3-3
librecad
Debian:14
before 2.1.3-3
2.1.3-3
librecad
Debian: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
librecad
Debian: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
librecad
Debian: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
libdxfrw
Mageia:8
From an advisory covering 4 CVEs
before 1.0.1-1.1.mga8
1.0.1-1.1.mga8
librecad
Ubuntu: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
librecad
Ubuntu:18.04:LTS
before 2.1.2-1ubuntu0.1, plus listed versions
2.1.2-1
2.1.2-1ubuntu0.1
librecad
Ubuntu: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
Affected packages
PackageAffectedFixed
librecad
Ubuntu: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
librecad
Ubuntu:22.04:LTS
before 2.1.3-3, plus listed versions
2.1.3-1.3
2.1.3-3
librecad
Ubuntu: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
librecad
Ubuntu: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
librecad
Ubuntu: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

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 20 moreShow less
MoveEnter Open