Description
A vulnerability was determined in GNU LibreDWG 0.13.4-154-g0b573035. This impacts the function decompress_R2004_section of the file src/decode.c of the component R2004 Section Decompression. Executing a manipulation can lead to heap-based buffer overflow. The attack requires local access. The exploit has been publicly disclosed and may be utilized. Upgrading to version 0.14.8396 will fix this issue. This patch is called 3d0f9fc2eddbd6579c99af3111c37c98f03475d0. You should upgrade the affected component.
Published: 2026-07-13
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a heap-based buffer overflow in the decompress_R2004_section routine of LibreDWG 0.13.4-154-g0b573035. It is triggered when decoding a specially crafted R2004 section in a DWG file. The overflow can corrupt heap memory, potentially causing the program to crash or, if the attacker controls the overwritten data, could lead to arbitrary code execution within the process.

Affected Systems

The flaw exists in GNU LibreDWG versions up to and including 0.13.4-154-g0b573035. The official fix is implemented in release 0.14.8396, which corresponds to commit 3d0f9fc2eddbd6579c99af3111c37c98f03475d0. Any system running LibreDWG before this version is vulnerable when it processes DWG files that can be supplied locally.

Risk and Exploitability

Exploitation requires local access to the machine where LibreDWG is executing, restricting the threat to local users. The CVSS score of 4.8 indicates moderate severity, and the EPSS score of <1% reflects a very low but non-zero likelihood of exploitation. The flaw is not listed in the CISA KEV catalog. Because only local attackers can trigger the overflow and the vulnerability has a publicly available patch, the overall risk to remote attackers is limited but organizations should still address the issue promptly.

Generated by OpenCVE AI on July 29, 2026 at 08:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to LibreDWG 0.14.8396 or later to eliminate the buffer overflow
  • Ensure the program is invoked only by trusted users and that it processes DWG files originating from authenticated, trusted sources
  • Perform preliminary validation of DWG files against the official format before feeding them to LibreDWG to reduce the chance that malformed inputs trigger the overflow

Generated by OpenCVE AI on July 29, 2026 at 08:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 13 Jul 2026 01:45:00 +0000

Type Values Removed Values Added
Description A vulnerability was determined in GNU LibreDWG 0.13.4-154-g0b573035. This impacts the function decompress_R2004_section of the file src/decode.c of the component R2004 Section Decompression. Executing a manipulation can lead to heap-based buffer overflow. The attack requires local access. The exploit has been publicly disclosed and may be utilized. Upgrading to version 0.14.8396 will fix this issue. This patch is called 3d0f9fc2eddbd6579c99af3111c37c98f03475d0. You should upgrade the affected component.
Title GNU LibreDWG R2004 Section Decompression decode.c decompress_R2004_section heap-based overflow
First Time appeared Gnu
Gnu libredwg
Weaknesses CWE-119
CWE-122
CPEs cpe:2.3:a:gnu:libredwg:*:*:*:*:*:*:*:*
Vendors & Products Gnu
Gnu libredwg
References
Metrics cvssV2_0

{'score': 4.3, 'vector': 'AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-07-13T15:53:27.409Z

Reserved: 2026-07-12T11:27:17.703Z

Link: CVE-2026-15520

cve-icon Vulnrichment

Updated: 2026-07-13T15:53:16.321Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T08:45:03Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-122

    Heap-based Buffer Overflow