Heap Overflow Vulnerability in OpenH264 Codec Library

openh264 Updated 02 Oct 2025

Summary

20/02/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-27091: OpenH264 is a free license codec library which supports H.264 encoding and decoding. Affects openh264 versions < 2.3.1+dfsg-3+deb12u1. Fixed in 2.3.1+dfsg-3+deb12u1. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

OpenH264 is a free license codec library developed by Cisco that supports H.264 encoding and decoding. It is widely used in various applications for video processing due to its efficiency and performance. However, a critical vulnerability has been identified in the decoding functions of this library, which could potentially expose users to significant security risks.

Vulnerability Detail

The vulnerability arises from a race condition between a Sequence Parameter Set (SPS) memory allocation and subsequent non-Instantaneous Decoder Refresh (non-IDR) Network Abstraction Layer (NAL) unit memory usage. This flaw allows a remote, unauthenticated attacker to craft a malicious bitstream that, when processed by a victim's user decoding client, could trigger a heap overflow. The consequences of this vulnerability include unexpected crashes and the potential for attackers to execute arbitrary commands on the victim's host system.

How To Fix

Minimum fixed version

2.3.1+dfsg-3+deb12u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade openh264

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

Workaround

There are no known workarounds for this vulnerability. The only effective solution is to upgrade to the patched version of OpenH264.

Conclusion

The identified heap overflow vulnerability in the OpenH264 codec library poses significant risks to users. Immediate action is required to upgrade to the patched version to mitigate these risks. Users are encouraged to utilize tools like Vulert to monitor their applications for vulnerabilities.

See every vulnerability recorded for openh264 →

Share this vulnerability

FAQ

OpenH264 is a codec library that enables encoding and decoding of H.264 video streams, widely used in video applications.

The vulnerability allows attackers to exploit a heap overflow, potentially leading to crashes or unauthorized command execution on affected systems.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software without needing access to the code. Visit Vulert Scanner to check your application.

Yes, upgrading to OpenH264 version 2.6.0 or later will resolve the vulnerability.

Unfortunately, there are no workarounds available. It is highly recommended to upgrade to the patched version as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for openh264.

How To Fix

Minimum fixed version

2.3.1+dfsg-3+deb12u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade openh264

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