SB2026112917 - Multiple vulnerabilities in LibreDWG
Published: November 29, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 50 vulnerabilities.
1) Type Confusion (CVE-ID: N/A)
CWE-ID: CWE-843 - Type confusion
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory, potentially exposing or altering data or crashing the importing process.
The vulnerability exists due to type confusion in dwg_free_variable_type when cleanup trusts a class name that does not match the allocated object's type. A remote attacker can trick a victim into importing a crafted JSON drawing to trigger out-of-bounds reads in object or entity cleanup and an invalid free.
CWE-ID: CWE-415 - Double Free
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing the LibreDWG process.
The vulnerability exists due to a double free in TABLESTYLE cleanup when references to shared border-color strings created during format conversion are treated as independently owned. A remote attacker can induce a victim to convert a crafted drawing through an affected format-conversion path to crash the process.
3) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing the affected process.
The vulnerability exists due to a heap use-after-free in LibreDWG's object-reference handling when the object array moves during decoding and dwg_ref_object later dereferences a stale cached pointer. A remote attacker can persuade a victim to open a crafted drawing file to crash the affected process.
4) Type Confusion (CVE-ID: N/A)
CWE-ID: CWE-843 - Type confusion
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to crash the importing process and potentially corrupt heap memory.
The vulnerability exists due to type confusion in the DXF importer when it converts an INSERT entity to MINSERT without migrating its fields, causing error cleanup to treat nonpointer data as a pointer and attempt to free it. A remote attacker can trick a victim into importing a specially crafted DXF file to crash the process and potentially corrupt heap memory.
5) Type Confusion (CVE-ID: N/A)
CWE-ID: CWE-843 - Type confusion
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt the process heap, potentially causing a crash or disrupting control flow.
The vulnerability exists due to type confusion in the LibreDWG JSON reader and object cleanup routines when an MTEXT entity is allocated as one type but freed as a proxy entity or proxy object. A remote attacker can trick a victim into opening a crafted JSON file to trigger an invalid free and corrupt the process heap.
6) Resource exhaustion (CVE-ID: N/A)
CWE-ID: CWE-400 - Resource exhaustion
CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service in services that automatically convert uploaded DWG files to full DXF.
The vulnerability exists due to uncontrolled resource consumption in LibreDWG's full DXF exporter when it uses an unchecked OLEFRAME length to write zeros for missing data. A remote attacker can submit a malformed DWG for full DXF conversion to tie up conversion workers or exhaust output storage.
7) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to disclose process memory through a generated DWG file.
The vulnerability exists due to a heap out-of-bounds read in encode_3dsolid() when the encoder uses an input-controlled length without checking it against the source buffer allocation. A remote attacker can submit a crafted JSON document to a conversion service that returns the generated DWG file to potentially recover adjacent heap data.
8) Access of Uninitialized Pointer (CVE-ID: N/A)
CWE-ID: CWE-824 - Access of Uninitialized Pointer
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing the DXF conversion process.
The vulnerability exists due to the use of an uninitialized pointer in the dxf2dwg text-DXF importer when an EVALUATION_GRAPH node is added without initializing its evalexpr field. A remote attacker can trick a victim into converting a crafted DXF file to trigger an invalid pointer read and crash during DWG encoding or object cleanup.
CWE-ID: CWE-415 - Double Free
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt the heap, crash the importing process, and potentially execute arbitrary code.
The vulnerability exists due to a double free in new_object() when DXF import error cleanup frees the record name a second time and releases a model-space object that is still referenced. A remote attacker can trick a victim into importing a crafted DXF file to trigger heap corruption.
10) Inefficient Algorithmic Complexity (CVE-ID: N/A)
CWE-ID: CWE-407 - Inefficient Algorithmic Complexity
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service through CPU exhaustion.
The vulnerability exists due to inefficient algorithmic complexity in the LibreDWG R2007 decoder when it performs a linear scan of the file's page map for each section page. A remote attacker can induce a victim to open or convert a crafted R2007 DWG file to exhaust CPU resources and stall decoding.
11) Inefficient Algorithmic Complexity (CVE-ID: N/A)
CWE-ID: CWE-407 - Inefficient Algorithmic Complexity
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by exhausting CPU resources.
The vulnerability exists due to a quadratic-time duplicate-handle scan in acds_collect_records() when LibreDWG processes AcDs records during DWG conversion or re-encoding. A remote attacker can induce a victim to convert or re-encode a specially crafted DWG file to cause a denial of service.
12) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that uses LibreDWG.
The vulnerability exists due to a heap use-after-free in LibreDWG's polyline creation API when adding polyline elements moves the object array and leaves cached pointers referring to freed memory. A remote attacker can supply a DWG file that a victim converts to pre-R13 DXF or binary DXF, or supply input that a victim's application uses to create polylines through the affected API, to crash the application.
13) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to crash an application using LibreDWG and, under some memory allocation conditions, disclose heap data or corrupt heap memory.
The vulnerability exists due to a heap use-after-free in dwg_add_POLYLINE_2D and related polyline creation functions when adding vertices reallocates the object array and leaves a pointer that is subsequently used for reads and writes. A remote attacker can supply input to an application that converts DWG files to older formats or builds drawings through the affected public API to trigger a crash or potentially disclose or corrupt heap data.
14) Out-of-bounds write (CVE-ID: N/A)
CWE-ID: CWE-787 - Out-of-bounds write
CVSSv4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing dwgread.
The vulnerability exists due to an out-of-bounds write in the R2004 DWG section decoder when integer wraparound undermines a bounds check and allows a copy beyond the decompression buffer. A remote attacker can trick a victim into opening a crafted R2004 DWG file with dwgread to crash the process.
CWE-ID: CWE-415 - Double Free
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that uses LibreDWG.
The vulnerability exists due to improper memory cleanup in the dwg_read_json error path when a parse failure leaves stale pointers that the caller's subsequent cleanup can dereference and free again. A remote attacker can trick a user into opening a malformed JSON file with an affected application to cause a denial of service.
16) NULL pointer dereference (CVE-ID: N/A)
CWE-ID: CWE-476 - NULL Pointer Dereference
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that imports DXF files using LibreDWG.
The vulnerability exists due to a null pointer dereference in dxf_blocks_read() when the parser compares a block header name without checking whether it is null. A remote attacker can induce a user to import a malformed DXF file to crash the application during parsing.
17) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service and potentially disclose sensitive heap data.
The vulnerability exists due to a heap use-after-free in read_2004_compressed_section() in src/decode.c when the decoder dereferences a cached pointer after the section array has been reallocated and moved. A remote attacker can induce a user to open a crafted DWG file to crash the decoder and potentially expose sensitive heap data.
18) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 2.4 [CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows an attacker with physical access to system to disclose heap memory in the generated DWG file or cause a denial of service by crashing the converter.
The vulnerability exists due to a heap out-of-bounds read in LibreDWG's VBA_PROJECT encoder when bit_write_TF copies data using a declared length that exceeds the source buffer. An attacker with physical access to system can supply a malformed DXF file for a user to convert to DWG to disclose heap memory or crash the converter.
19) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service or potentially disclose adjacent heap contents in the JSON output.
The vulnerability exists due to an out-of-bounds read in the json_write_TF function when it scans binary proxy graphics for a null terminator without checking the buffer length. A remote attacker can trick a victim into exporting a crafted DWG file to JSON to crash the exporter or potentially expose adjacent heap contents in the output.
20) NULL pointer dereference (CVE-ID: N/A)
CWE-ID: CWE-476 - NULL Pointer Dereference
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by terminating a process that uses LibreDWG to parse DWG files.
The vulnerability exists due to a null pointer dereference in dwg_decode_TABLECONTENT_private when the decoder uses an unvalidated cell count to allocate a row's cell array and writes to the array without checking whether allocation succeeded. A remote attacker can induce a user to open a crafted DWG file to crash the parsing process through a null pointer write or an allocator abort.
21) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing the LibreDWG decoding process.
The vulnerability exists due to an out-of-bounds read in bit_calc_CRC when the R2004 handles parser passes a checksum length that exceeds the bounds of the decompressed handles buffer. A remote attacker can trick a user into opening a crafted R2004 DWG file to trigger the out-of-bounds read and potentially crash the decoding process.
22) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service and potentially disclose adjacent heap data in the generated output.
The vulnerability exists due to an out-of-bounds read in bit_convert_TU when the DXF or DXFB writer converts an LTYPE string and the converter scans for a terminator without checking the buffer boundary. A remote attacker can entice a victim to convert a crafted DWG file to trigger a crash or potentially expose heap data in the output.
23) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory and crash the importing process, with potential additional effects on confidentiality and integrity.
The vulnerability exists due to a heap-based buffer overflow in add_3DSOLID_encr() when rewriting decrypted SAT version data during DXF import. A remote attacker can trick a user into opening a crafted DXF file in an application that uses LibreDWG to trigger the out-of-bounds write.
CWE-ID: CWE-415 - Double Free
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to crash the importing application and potentially corrupt its heap, depending on the allocator.
The vulnerability exists due to a double free in add_ent_preview() when the DXF importer retains a stale pointer after releasing an entity preview buffer while processing empty preview data. A remote attacker can trick a user into opening a crafted DXF file to trigger a second free during subsequent preview processing or drawing cleanup.
25) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that uses LibreDWG to add drawing entities.
The vulnerability exists due to a heap use-after-free in the public entity-addition API when an object insertion reallocates the drawing's object array and the API dereferences a stale pointer. A remote attacker can induce a user to process a crafted script with dwgadd or add an affected entity to a crafted drawing to crash the application.
26) Use-after-free (CVE-ID: CVE-2026-67526)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory and cause a denial of service, with possible process compromise.
The vulnerability exists due to a heap use-after-free in LibreDWG's DXF importer when creating a VX_TABLE_RECORD for a VIEWPORT entity reallocates the object pool and the importer continues to read and write through a stale pointer. A remote attacker can induce a victim to import a malicious DXF file to trigger heap memory corruption and potentially crash the importing process.
27) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to crash the LibreDWG process and potentially hijack its control flow.
The vulnerability exists due to a heap-based buffer overflow in the LibreDWG JSON reader's json_eed function when a buffer resize uses an outdated record size and leaves too little space for a string copy. A remote attacker can supply a crafted JSON document for parsing to overwrite adjacent heap memory with attacker-controlled data.
28) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory and potentially crash the importing process.
The vulnerability exists due to a heap-based buffer overflow in add_LTYPE_dashes when importing legacy DXF linetypes, because the bounds check uses the original text length rather than the length after conversion. A remote attacker can induce a user to import a crafted DXF file whose linetype text expands during codepage conversion or escape normalization to corrupt heap memory and potentially crash the importing process.
29) Out-of-bounds write (CVE-ID: N/A)
CWE-ID: CWE-787 - Out-of-bounds write
CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap metadata and potentially crash the importer.
The vulnerability exists due to a heap out-of-bounds write in add_SPLINE when the DXF or DXFB importer processes a spline with no control points and fails to reject a negative index. A remote attacker can induce a victim to import a crafted DXF or DXFB file to trigger heap corruption.
30) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing the DWG-to-DXF converter.
The vulnerability exists due to a heap out-of-bounds read in dxf_thumbnail_write() when an unchecked subtraction underflows while calculating the R2007 thumbnail length. A remote attacker can trick a user into converting a crafted R2007 DWG file to cause the conversion process to abort.
31) Heap-based buffer overflow (CVE-ID: CVE-2026-63474)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that uses LibreDWG.
The vulnerability exists due to a heap-based buffer overflow in decompress_R2004_section when decompressing R2004 DWG data because the bounds check uses a logical size that can exceed the actual buffer capacity after reallocation. A remote attacker can trick a victim into opening a crafted R2004 DWG file to crash the application.
32) Stack-based buffer overflow (CVE-ID: CVE-2026-67451)
CWE-ID: CWE-121 - Stack-based buffer overflow
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to crash a LibreDWG conversion process and potentially disclose sensitive process memory through the JSON output.
The vulnerability exists due to a stack buffer over-read in json_section_2ndheader when the JSON writer treats a negative handle count as an unsigned length without checking the buffer bounds. A remote attacker can induce a victim to convert a crafted DWG file to JSON to crash the converter and potentially expose process memory if the attacker can access the output.
33) NULL pointer dereference (CVE-ID: N/A)
CWE-ID: CWE-476 - NULL Pointer Dereference
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that re-encodes DWG files with LibreDWG.
The vulnerability exists due to a null pointer dereference in remove_NOD_item when dwg_encode processes a partially decoded Named Object Dictionary whose item-handle array is missing. A remote attacker can trick a victim into re-encoding a malformed DWG file to cause a denial of service.
34) Infinite loop (CVE-ID: CVE-2026-67450)
CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by making LibreDWG's DXF conversion hang and continuously consume CPU.
The vulnerability exists due to an angle-normalization loop without a guaranteed exit in the LibreDWG DXF writer when converting drawings with invalid MLINESTYLE angles. A remote attacker can supply a crafted drawing for a victim or a server-side batch converter to process to cause a denial of service.
35) Double free (CVE-ID: CVE-2026-67452)
CWE-ID: CWE-415 - Double Free
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that uses LibreDWG.
The vulnerability exists due to a double-free in LibreDWG's DWG header variable handling when a malformed file corrupts the heap during parsing and cleanup releases the same memory twice. A remote attacker can trick a user into opening a crafted DWG file to crash the application.
36) Integer overflow (CVE-ID: N/A)
CWE-ID: CWE-190 - Integer overflow
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service and potentially disclose limited heap data in converted output.
The vulnerability exists due to an integer overflow in LibreDWG's R2004 section-info decompression when the allocation size wraps but a subsequent sentinel scan uses a larger logical size. A remote attacker can trick a victim into opening a crafted R2004 DWG file to trigger a heap out-of-bounds read.
37) Integer underflow (CVE-ID: CVE-2026-67453)
CWE-ID: CWE-191 - Integer underflow
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service or disclose a limited amount of heap data.
The vulnerability exists due to an unsigned integer underflow in the source bounds check in read_data_section when the R2007 decoder reads an uncompressed section with an unchecked source offset. A remote attacker can trick a victim into opening a crafted R2007 DWG file to trigger a heap out-of-bounds read.
38) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that uses LibreDWG.
The vulnerability exists due to a heap out-of-bounds read in decode_R2004_header when parsing the section page map of an R2004 DWG file without verifying that the full read stays within the file buffer. A remote attacker can trick a victim into opening a malformed R2004 DWG file to crash the application.
39) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by interrupting DXF export.
The vulnerability exists due to a heap use-after-free in LibreDWG's OLE2FRAME.oleclient handling when an exporter reads a string that the importer has already freed. A remote attacker can supply a DXF file for a victim to import and then export as ASCII or binary DXF to potentially terminate the application.
40) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 5.7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a local user to cause a denial of service by crashing a process that uses LibreDWG.
The vulnerability exists due to a heap use-after-free in dwg_add_MLINESTYLE() when dictionary creation relocates the object pool and the function continues to use a stale pointer. A local user can invoke the local authoring API under conditions that invalidate the pointer to cause a denial of service.
41) Uncontrolled Recursion (CVE-ID: N/A)
CWE-ID: CWE-674 - Uncontrolled Recursion
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that uses LibreDWG to parse DWG files.
The vulnerability exists due to uncontrolled recursion in the MATERIAL object decoder when processing procedural textures, which can lead to a null-pointer write during error handling. A remote attacker can trick a victim into opening a crafted DWG file to crash the application.
42) Allocation of Resources Without Limits or Throttling (CVE-ID: N/A)
CWE-ID: CWE-770 - Allocation of Resources Without Limits or Throttling
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service through memory exhaustion.
The vulnerability exists due to a missing bounds check in decompress_R2004_section when copying the initial literal run, allowing the decompression buffer to grow beyond its intended limit. A remote attacker can entice a victim to open a crafted R2004 or R2010+ DWG file in an application that uses LibreDWG to exhaust available memory.
43) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory and cause a denial of service.
The vulnerability exists due to a heap-based buffer overflow in the LibreDWG load_dwg example utility when it constructs an output filename with write support enabled. A remote attacker can supply a crafted filename through the local command line to corrupt heap memory and crash the utility before DWG parsing.
44) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory and cause a denial of service, with possible limited disclosure or modification of process data.
The vulnerability exists due to a use-after-free in free_TABLESTYLE_r2010 and subsequent TABLESTYLE cleanup when down-conversion leaves two fields sharing a handle that cleanup can free twice. A remote attacker can induce a victim to convert a crafted DWG file to an older format to trigger heap corruption.
45) Improper Check for Unusual or Exceptional Conditions (CVE-ID: N/A)
CWE-ID: CWE-754 - Improper Check for Unusual or Exceptional Conditions
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by terminating a Windows process that parses DWG files with LibreDWG.
The vulnerability exists due to a missing check in LibreDWG's header-variable decoder when it passes a relative timestamp to strftime() as a calendar date, causing the Windows Universal C Runtime to terminate the process. A remote attacker can induce a user to open a malformed DWG file or submit one to an automated import service to cause a denial of service.
46) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing the process that parses a DXF or DXFB file.
The vulnerability exists due to a heap use-after-free in the LibreDWG DXF reader when an allocation failure during block visibility or block property parsing causes a helper to return a freed pointer that the reader can dereference and free again. A remote attacker can supply a crafted DXF or DXFB file to the default reader to crash the process.
47) Out-of-bounds write (CVE-ID: N/A)
CWE-ID: CWE-787 - Out-of-bounds write
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory and cause a denial of service.
The vulnerability exists due to a heap out-of-bounds write in the LibreDWG JSON parser when it treats a pointer field as an embedded structure. A remote attacker can trick a victim into opening a crafted JSON file to corrupt heap memory and potentially crash the application.
48) Integer overflow (CVE-ID: N/A)
CWE-ID: CWE-190 - Integer overflow
CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing a process that uses the LibreDWG decoder.
The vulnerability exists due to a 32-bit unsigned integer overflow in read_2004_compressed_section() when checking the bounds of a section header, allowing an out-of-bounds read. A remote attacker can induce a victim to open a malformed R2004 DWG file to crash the decoder process.
49) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to crash an application using LibreDWG and potentially disclose heap data.
The vulnerability exists due to an out-of-bounds read in read_2004_compressed_section() when narrowing a section address from 64 to 32 bits allows arithmetic in the bounds check to wrap around. A remote attacker can trick a victim into opening a crafted R2004 DWG file to trigger the crash or potentially expose heap data.
50) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory, potentially crashing the host application or executing arbitrary code.
The vulnerability exists due to a heap-based buffer overflow in dwg_get_entities when the function uses an outdated entity count to allocate the output array but writes a pointer for every entity it finds. A remote attacker can supply a crafted DXF, DXF-B, or JSON file for a victim to open in an application that enumerates imported entities through this function, causing heap corruption or a null pointer dereference if allocation returns null.
Remediation
Install update from vendor's website.
References
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-V28X-QFR4-W4VM
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-J899-7QHM-8244
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-8GV8-3GXC-4VHV
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-HH9F-2FPF-P5W6
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-V9C2-69PF-GWR5
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-37MV-Q3XR-PJJC
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-QG3H-PM38-W4RR
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-MQV8-H4FM-QV53
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-67C2-H2W2-32G4
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-W5CW-G5GP-P6VF
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-QR3R-4GXG-WMF4
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-C5QQ-R34G-QGPC
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-VJ62-WP5X-VW7V
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-RHH7-9M95-RH87
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-P4HW-GV7C-CF35
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-7CVW-9RMM-GPR5
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-H5W9-QXJ8-JHXP
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-94FC-2292-HF2H
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-W3WX-HF3H-G6W6
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-9C75-6GMH-HRGQ
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-W67W-F2FW-PRVJ
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-37W4-C8MV-7M8F
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-6C66-QGW3-83W8
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-JQP7-X35P-3WVX
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-4CC5-R3QR-M9W3
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-QCXP-M6VJ-H5H8
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-6W6J-23M9-86JC
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-J73W-VQJG-VF8X
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-R7H7-457H-9FXX
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-63VM-XRM5-37JJ
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-QG2F-8389-W95J
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-9G8V-9575-XGRF
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-6Q9W-J39M-JG37
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-46MP-4X39-P444
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-6V3V-3GMQ-63V4
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-2M5X-9P64-6M3F
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-PCP5-HV9W-8F78
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-C8CQ-GR5H-7C6J
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-C6R9-CRW2-JCQ3
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-Q4C2-XFWW-PP93
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-H844-9FXW-8FQ6
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-88VM-95H9-8WJ2
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-XVF3-P5W9-RJR2
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-9J7J-3X85-HFWF
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-R6GJ-F9G5-XQF7
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-73H2-MV37-JRQ8
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-28P5-QCX5-2JQM
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-6XX6-G44H-929J
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-FV59-9W8H-6P5X
- https://github.com/LibreDWG/libredwg/security/advisories/GHSA-R4JF-PVP2-C2MJ