Stack-buffer-overflow in dxf_header_read in libredwg

libredwg Updated 02 Oct 2025

Summary

07/11/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-1122: Stack-buffer-overflow in dxf_header_read. Affects libredwg versions >= 56b087fa0bdb5c5587f2e68f864a7240255f4d82, < 4e4547b96add1ddb4ef7036a9ddbde9806371104. Fixed in 4e4547b96add1ddb4ef7036a9ddbde9806371104. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libredwg is an open-source library for reading and writing DWG files, which are the native file format for AutoCAD. It provides functionality to parse and manipulate DWG files. However, a vulnerability has been discovered in the dxf_header_read function of libredwg, which can lead to a stack buffer overflow.

Vulnerability Detail

The vulnerability in dxf_header_read function of libredwg allows for a stack buffer overflow when reading DXF files. This can be triggered by a specially crafted DXF file, potentially leading to arbitrary code execution or a denial of service. The issue was reported through the OSS-Fuzz project and has been assigned a medium severity level.

How To Fix

Minimum fixed version

4e4547b96add1ddb4ef7036a9ddbde9806371104

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

There is no known workaround for this vulnerability. It is necessary to update libredwg to a fixed version.

Conclusion

The dxf_header_read function in libredwg is vulnerable to a stack buffer overflow. To mitigate this vulnerability, it is crucial to update libredwg to the latest version. For further assistance or support in 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 files, the native file format for AutoCAD.

This vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial of service by exploiting the stack buffer overflow.

This vulnerability was discovered through the OSS-Fuzz project, which performs continuous fuzz testing on open-source software.

This vulnerability has been assigned a medium severity level.

No, there is no known workaround. Updating to a fixed version of libredwg is necessary.

Related vulnerabilities

Recent vulnerabilities recorded for libredwg.

How To Fix

Minimum fixed version

4e4547b96add1ddb4ef7036a9ddbde9806371104

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