Heap-buffer-overflow in decode_preR13_entities in libredwg

libredwg Updated 02 Oct 2025

Summary

02/11/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-1101: Heap-buffer-overflow in decode_preR13_entities. Affects libredwg versions >= 1760559320f27e75d86c9e6edab467bab63d58e9, < 119ef50a0b1ef395defa5ee453acd5d3c158c638. Fixed in 119ef50a0b1ef395defa5ee453acd5d3c158c638. 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, which are the native file format for AutoCAD. It provides functionality to decode and encode various entities in DWG files. However, a vulnerability has been discovered in the library that can lead to a heap-buffer-overflow when decoding pre-R13 entities.

Vulnerability Detail

The vulnerability occurs in the decode_preR13_entities function of libredwg. It can be triggered when processing certain entities in DWG files, causing a heap-buffer-overflow read of 10 bytes. This can potentially lead to a crash or allow an attacker to execute arbitrary code. The vulnerability has a medium severity rating.

How To Fix

Minimum fixed version

119ef50a0b1ef395defa5ee453acd5d3c158c638

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.

Conclusion

In conclusion, libredwg is vulnerable to a heap-buffer-overflow when decoding pre-R13 entities. It is important to update to the fixed version of libredwg to mitigate the risk of crashes or potential code execution. 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 files, the native file format for AutoCAD.

A heap-buffer-overflow is a type of memory corruption vulnerability where a program reads or writes data beyond the bounds of a heap-allocated buffer.

The vulnerability has a medium severity rating.

To fix the vulnerability, update libredwg to the fixed version available on the official GitHub repository.

No workaround has been provided for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for libredwg.

How To Fix

Minimum fixed version

119ef50a0b1ef395defa5ee453acd5d3c158c638

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