MEDIUM 5.3

CVE-2026-15182: GNU LibreDWG BMP Heap Buffer Overflow - MEDIUM CVSS 5.3

GNU LibreDWG versions up to 0.13.4 contain a heap-based buffer overflow vulnerability in the BMP image handling code. An attacker with local access can exploit this flaw to read, modify, or crash sensitive data by manipulating how the application processes BMP files. Upgrading to version 0.14 resolves the issue.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.3 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Weaknesses (CWE)
CWE-119, CWE-122
Affected products
0 configuration(s)
Published / Modified
2026-07-09 / 2026-07-09

NVD description (verbatim)

A vulnerability has been found in GNU LibreDWG up to 0.13.4. The affected element is the function dwg_bmp of the file src/dwg.c of the component BMP Image Handler. Such manipulation leads to heap-based buffer overflow. The attack must be carried out locally. The exploit has been disclosed to the public and may be used. Upgrading to version 0.14 is sufficient to fix this issue. The name of the patch is 18fd542bb4d5ccedf9de12052bf50068b2b26f06. It is suggested to upgrade the affected component.

13 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in the dwg_bmp function within src/dwg.c of GNU LibreDWG's BMP Image Handler component. A heap-based buffer overflow (CWE-119, CWE-122) occurs during BMP file processing, allowing an authenticated local attacker to write beyond allocated heap memory boundaries. The flaw requires local system access and standard user privileges to trigger; no user interaction is needed once exploitation begins. The patch commit 18fd542bb4d5ccedf9de12052bf50068b2b26f06 corrects the memory boundary checks in the affected function.

Business impact

Organizations using LibreDWG in design, CAD, or document conversion workflows may experience service disruption if an attacker exploits this flaw. A compromised process could leak sensitive design data, corrupt project files, or trigger denial of service. The impact is localized to systems where untrusted users can authenticate and submit BMP files for processing—typical in collaborative environments or batch processing services. The medium CVSS score reflects the local-only attack surface and limited confidentiality/integrity risk relative to remote or privilege-escalation flaws.

Affected systems

GNU LibreDWG library versions up to and including 0.13.4 are vulnerable. Any application that embeds or links LibreDWG and processes BMP image data is at risk if running on systems where local, authenticated users exist. This includes CAD applications, document converters, and design toolchains that rely on LibreDWG for DWG file manipulation and embedded image handling.

Exploitability

Exploitation requires local system access and valid user credentials; remote exploitation is not possible. The attacker must be able to supply a specially crafted BMP file to the affected dwg_bmp function. Public disclosure of the vulnerability has occurred, increasing the likelihood that exploit code or proof-of-concept demonstrations are available. However, the barrier to entry remains moderate due to the local-only requirement and the need to interact with the specific BMP processing code path.

Remediation

Upgrade GNU LibreDWG to version 0.14 or later. Organizations should verify patch applicability across their software supply chain, particularly in third-party applications that statically link or bundle older versions of the library. For systems unable to upgrade immediately, restrict local system access to trusted users only and monitor file upload or BMP processing endpoints for anomalies.

Patch guidance

The upstream fix is available in GNU LibreDWG version 0.14. Apply this update to all systems running vulnerable versions. The specific patch commit is 18fd542bb4d5ccedf9de12052bf50068b2b26f06; verify against the official LibreDWG repository that this commit is included in your target version. If LibreDWG is embedded in a third-party application, check the vendor's advisory for their release timeline and patch availability. Test the update in a non-production environment to confirm compatibility with dependent software before production deployment.

Detection guidance

Monitor system logs for failures or unexpected termination of processes that handle BMP file processing through LibreDWG. Heap corruption or segmentation faults in dwg_bmp may indicate exploitation attempts. Implement file-type validation to ensure only legitimate BMP files are processed; reject files with suspicious headers or oversized dimensions. Network detection is limited since the attack is local, but host-based intrusion detection rules for heap-spray patterns or buffer overflow signatures in memory may help identify post-exploitation activity. Review access logs to identify which local users interact with LibreDWG-dependent applications.

Why prioritize this

This vulnerability merits timely but not emergency patching. The CVSS 5.3 MEDIUM score and local-only attack surface mean it poses lower risk than remote code execution or privilege-escalation flaws. However, organizations with multi-user systems or CAD/design services should prioritize upgrades to close an avenue for lateral data theft or service disruption. The public disclosure of the vulnerability and availability of proof-of-concept code elevate the urgency moderately.

Risk score, explained

The CVSS 3.1 score of 5.3 (MEDIUM) reflects: local attack vector only (AV:L), low complexity exploitation (AC:L), requirement for authenticated user privileges (PR:L), no user interaction needed once triggered (UI:N), and limited scope (S:U). The impact is confined to confidentiality, integrity, and availability within the vulnerable process—not system-wide. This scoring appropriately deprioritizes the flaw relative to remote or privilege-escalation vulnerabilities while recognizing the real risk in collaborative or multi-tenant environments.

Frequently asked questions

Do I need to patch this if I only process BMP files from trusted sources?

Partial mitigation is possible by restricting BMP file sources to verified, internal sources only. However, this does not eliminate the risk if a trusted insider is malicious or if an attacker compromises an upstream source. Patching remains the recommended approach, especially if your workflows involve third-party or user-supplied images.

Is this vulnerability exploitable remotely if LibreDWG is exposed via a web service?

Not directly. The vulnerability requires local authentication and file system access. However, if a web service processes user-uploaded BMP files and runs LibreDWG in the backend with inadequate sandboxing, an attacker could trigger the flaw by uploading a malicious BMP. In such scenarios, the practical attack surface is broader than the strict 'local-only' classification suggests.

What should I do if I am using an older embedded version of LibreDWG in a third-party product?

Contact your software vendor to request a patched version or a timeline for an update. Check the vendor's security advisory page. If no patch is available, isolate the affected application to a restricted network segment with strong access controls, or consider alternative tools until a fix is released.

Are there any workarounds besides patching?

No reliable workarounds exist. Access controls (limiting local user accounts, restricting sudo privileges) reduce exposure but do not eliminate the vulnerability. Patching to version 0.14 or later is the authoritative fix.

This analysis is based on publicly available information current as of the vulnerability publication date. CVSS scores, patch versions, and affected product lists are provided by the original source and should be verified against official vendor advisories before deployment. SEC.co makes no warranty regarding the completeness or accuracy of this intelligence and recommends independent validation and testing in your specific environment. Exploit code or weaponized proof-of-concept details are not provided; security teams should consult official security channels for responsible disclosure guidance. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).