Debian DSA-5077-1 : librecad - security update

high Nessus Plugin ID 158089

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 10 / 11 host has packages installed that are affected by multiple vulnerabilities as referenced in the dsa-5077 advisory.

- 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)

- 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)

- 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)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the librecad packages.

For the stable distribution (bullseye), these problems have been fixed in version 2.1.3-1.3+deb11u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004518

https://security-tracker.debian.org/tracker/source-package/librecad

https://www.debian.org/security/2022/dsa-5077

https://security-tracker.debian.org/tracker/CVE-2021-21898

https://security-tracker.debian.org/tracker/CVE-2021-21899

https://security-tracker.debian.org/tracker/CVE-2021-21900

https://security-tracker.debian.org/tracker/CVE-2021-45341

https://security-tracker.debian.org/tracker/CVE-2021-45342

https://security-tracker.debian.org/tracker/CVE-2021-45343

https://packages.debian.org/source/buster/librecad

https://packages.debian.org/source/bullseye/librecad

Plugin Details

Severity: High

ID: 158089

File Name: debian_DSA-5077.nasl

Version: 1.3

Type: local

Agent: unix

Published: 2/16/2022

Updated: 11/9/2023

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2021-45341

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:librecad, cpe:/o:debian:debian_linux:11.0, cpe:/o:debian:debian_linux:10.0, p-cpe:/a:debian:debian_linux:librecad-data

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/15/2022

Vulnerability Publication Date: 11/19/2021

Reference Information

CVE: CVE-2021-21898, CVE-2021-21899, CVE-2021-21900, CVE-2021-45341, CVE-2021-45342, CVE-2021-45343