Stack-buffer-overflow in dynapi_set_helper in libredwg

libredwg Updated 02 Oct 2025

Summary

04/11/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-1110: Stack-buffer-overflow in dynapi_set_helper. Affects libredwg versions >= 76baf858da4cdc14bb4f0d8c994f0aa859232cae, < c8dd9c66bca793aaf3029d1eda50b06828ae14f2. Fixed in c8dd9c66bca793aaf3029d1eda50b06828ae14f2. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libredwg is an open-source library for reading and writing DWG files, used in various CAD software. It provides functionality to parse and manipulate DWG files. However, a vulnerability has been discovered in the dynapi_set_helper function, which can lead to a stack-buffer-overflow.

Vulnerability Detail

The vulnerability in dynapi_set_helper function of libredwg allows for a stack-buffer-overflow. This can be triggered when processing a specially crafted DWG file, potentially leading to remote code execution or denial of service. The issue was reported through OSS-Fuzz, and the crash state indicates that the overflow occurs during a read operation. More details can be found in the OSS-Fuzz report: [link].

How To Fix

Minimum fixed version

c8dd9c66bca793aaf3029d1eda50b06828ae14f2

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 crucial to update to the fixed version of libredwg as soon as possible.

Conclusion

The stack-buffer-overflow vulnerability in dynapi_set_helper function of libredwg can have severe consequences, including remote code execution or denial of service. It is crucial to update to the latest version of libredwg that includes the fix for this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for libredwg →

Share this vulnerability

FAQ

libredwg is an open-source library used for reading and writing DWG files in CAD software.

A stack-buffer-overflow occurs when a program writes more data to a buffer than it can hold, potentially overwriting adjacent memory and leading to crashes or code execution.

This vulnerability can be exploited by providing a specially crafted DWG file to an application that uses libredwg, triggering the stack-buffer-overflow during file processing.

The stack-buffer-overflow vulnerability in libredwg can potentially allow an attacker to execute arbitrary code or cause denial of service by crashing the application.

Yes, a fix for this vulnerability is available in the latest version of libredwg. It is recommended to update to the fixed version to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for libredwg.

How To Fix

Minimum fixed version

c8dd9c66bca793aaf3029d1eda50b06828ae14f2

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