Heap-buffer-overflow in libredwg: dxf_fixup_string

libredwg Updated 02 Oct 2025

Summary

31/08/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-777: 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 that provides functionality for reading and writing DWG and DXF files. It is commonly used in CAD software and other applications that work with these file formats. The library allows developers to parse and manipulate the contents of DWG and DXF files. However, a vulnerability has been discovered in the library that can lead to a heap-buffer-overflow when processing certain DXF files.

Vulnerability Detail

The vulnerability in libredwg arises from a heap-buffer-overflow issue in the function dxf_fixup_string. This vulnerability can be triggered when processing DXF files, potentially leading to a crash or arbitrary code execution. The specific crash type is a heap-buffer-overflow read of 1 byte. The vulnerable code path involves dxf_fixup_string, dxf_header_write, and dwg_write_dxf functions. The issue has been reported and tracked in the OSS-Fuzz project, with more details available in the provided link. 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

At the moment, there is no known workaround for this vulnerability. It is recommended to apply the fix provided by the libredwg developers.

Conclusion

In conclusion, libredwg is susceptible to a heap-buffer-overflow vulnerability when processing DXF files. The developers have released a fix for this issue, which should be applied by updating to a patched version of the library. 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 used for reading and writing DWG and DXF files.

This vulnerability can potentially lead to a crash or arbitrary code execution when processing certain DXF files using libredwg.

The severity of this vulnerability is considered medium.

Yes, the developers of libredwg have addressed the issue in the codebase. It is recommended to update to a version that includes the fix.

At the moment, there is no known workaround. Applying the provided fix is the recommended solution.

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