Integer Overflow Vulnerability in libebml: Buffer Overflow Risk

libebml Updated 02 Oct 2025

Summary

12/01/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-52339: In libebml before 1.4.5, an integer overflow in MemIOCallback.cpp can occur when reading or writing. It may result in buffer overflows. Affects libebml versions < 1.4.2-1+deb11u1. Fixed in 1.4.2-1+deb11u1. 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

libebml is a library used for reading and writing EBML (Extensible Binary Meta Language) files, which are commonly used in multimedia applications. It provides essential functionalities for handling metadata in video and audio files. However, prior to version 1.4.5, libebml was susceptible to an integer overflow vulnerability that could lead to buffer overflows, potentially compromising the integrity and security of applications relying on this library.

Vulnerability Detail

In libebml versions before 1.4.5, an integer overflow can occur in the MemIOCallback.cpp file during read or write operations. This vulnerability can lead to buffer overflows, which may allow attackers to execute arbitrary code, crash applications, or corrupt data. The issue arises from improper handling of memory allocation based on user input, making it critical for developers to address this flaw promptly.

How To Fix

Minimum fixed version

1.4.2-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libebml

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider restricting the input size for read and write operations to prevent potential overflow scenarios. However, this is not a substitute for applying the patch.

Conclusion

The integer overflow vulnerability in libebml poses significant risks to applications utilizing this library. It is crucial for developers to update to the latest patched versions to mitigate these risks. Utilizing tools like Vulert can help monitor and identify vulnerabilities in your software effectively.

See every vulnerability recorded for libebml →

Share this vulnerability

FAQ

The vulnerability is an integer overflow that can lead to buffer overflows during read or write operations.

Exploiting this vulnerability may allow attackers to execute arbitrary code, crash applications, or corrupt data.

Versions of libebml prior to 1.4.5 are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If immediate updates are not possible, implement input size restrictions as a temporary workaround until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for libebml.

How To Fix

Minimum fixed version

1.4.2-1+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libebml

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