Stack-buffer-overflow in dynapi_set_helper in libredwg
Summary
OSV-2023-1110: Stack-buffer-overflow in dynapi_set_helper. Affects libredwg versions >= 76baf858da4cdc14bb4f0d8c994f0aa859232cae, < c8dd9c66bca793aaf3029d1eda50b06828ae14f2. Fixed in c8dd9c66bca793aaf3029d1eda50b06828ae14f2. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for libredwg.