Heap-buffer-overflow in libredwg: dxf_fixup_string

libredwg Updated 02 Oct 2025

Summary

10/10/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-997: Heap-buffer-overflow in dxf_fixup_string. Affects libredwg versions >= 0ad719902273a8a4d79c026d01ef2057c173579b, < b01634c896c29bb3a778daeef9e13ef115995610. Fixed in b01634c896c29bb3a778daeef9e13ef115995610. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libredwg is an open-source library for reading and writing DWG and DXF files. It provides functionality to parse and manipulate CAD drawings. The library is widely used in various applications that deal with CAD files. However, a vulnerability has been discovered in the library that could lead to a heap-buffer-overflow.

Vulnerability Detail

The vulnerability in libredwg, specifically in the function dxf_fixup_string, allows for a heap-buffer-overflow read of 1 byte. This vulnerability was reported through OSS-Fuzz, and the crash state indicates that the issue occurs during the processing of DXF layouts. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition. The severity of this vulnerability is considered medium.

How To Fix

Minimum fixed version

b01634c896c29bb3a778daeef9e13ef115995610

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

No workaround has been provided for this vulnerability. It is essential to apply the fix mentioned above to ensure the security of libredwg.

Conclusion

In conclusion, libredwg is affected by a medium-severity heap-buffer-overflow vulnerability in the dxf_fixup_string function. Users should update to the fixed version to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libredwg →

Share this vulnerability

FAQ

libredwg is an open-source library for reading and writing DWG and DXF files. It is commonly used in applications that deal with CAD drawings.

The vulnerability allows for a heap-buffer-overflow read, which could be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition.

This vulnerability was discovered through OSS-Fuzz, a continuous fuzzing service for open-source software.

The severity of this vulnerability is considered medium.

To fix this vulnerability, update libredwg to the fixed version b01634c896c29bb3a778daeef9e13ef115995610.

Related vulnerabilities

Recent vulnerabilities recorded for libredwg.

How To Fix

Minimum fixed version

b01634c896c29bb3a778daeef9e13ef115995610

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback