CVE-2025-27091 OpenH264 Decoding Functions Heap Overflow Vulnerability
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- UbuntuDebianNetwork AppliancesCisco
Description
OpenH264 is a free license codec library which supports H.264 encoding and decoding. A vulnerability in the decoding functions of OpenH264 codec library could allow a remote, unauthenticated attacker to trigger a heap overflow. This vulnerability is due to a race condition between a Sequence Parameter Set (SPS) memory allocation and a subsequent non Instantaneous Decoder Refresh (non-IDR) Network Abstraction Layer (NAL) unit memory usage. An attacker could exploit this vulnerability by crafting a malicious bitstream and tricking a victim user into processing an arbitrary video containing the malicious bistream. An exploit could allow the attacker to cause an unexpected crash in the victim's user decoding client and, possibly, perform arbitrary commands on the victim's host by abusing the heap overflow. This vulnerability affects OpenH264 2.5.0 and earlier releases. Both Scalable Video Coding (SVC) mode and Advanced Video Coding (AVC) mode are affected by this vulnerability. OpenH264 software releases 2.6.0 and later contained the fix for this vulnerability. Users are advised to upgrade. There are no known workarounds for this vulnerability.
For more information
If you have any questions or comments about this advisory:
- Open an issue in cisco/openh264
- Email Cisco Open Source Security (oss-security@cisco.com) and Cisco PSIRT (psirt@cisco.com)
Credits:
- Research: Octavian Guzu and Andrew Calvano of Meta
- Fix ideation: Philipp Hancke and Shyam Sadhwani of Meta
- Fix implementation: Benzheng Zhang (@BenzhengZhang)
- Release engineering: Benzheng Zhang (@BenzhengZhang)
Upgrade path
10 packages: 8 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/openh264(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/openh264(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| alpine/openh264(Alpine v3.21) | < 2.6.0-r0 | 2.6.0-r0 | Fixed |
| alpine/openh264(Alpine v3.22) | < 2.6.0-r0 | 2.6.0-r0 | Fixed |
| alpine/openh264(Alpine v3.23) | < 2.6.0-r0 | 2.6.0-r0 | Fixed |
| alpine/openh264(Alpine v3.24) | < 2.6.0-r0 | 2.6.0-r0 | Fixed |
| cisco openh264 | < 2.5.1; = < 2.6.0 | 2.5.1 | Fixed |
| debian/openh264(Debian 12) | < 2.3.1+dfsg-3+deb12u1; = 2.3.1+dfsg-3 | 2.3.1+dfsg-3+deb12u1 | Fixed |
| debian/openh264(Debian 13) | < 2.5.0+dfsg-2 | 2.5.0+dfsg-2 | Fixed |
| debian/openh264(Debian 14) | < 2.5.0+dfsg-2 | 2.5.0+dfsg-2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/openh264(Debian:12) | < 2.3.1+dfsg-3+deb12u1 | 2.3.1+dfsg-3+deb12u1 |
| debian/openh264(Debian:12) | = 2.3.1+dfsg-3 | No fix listed |
| debian/openh264(Debian:13) | < 2.5.0+dfsg-2 | 2.5.0+dfsg-2 |
| debian/openh264(Debian:14) | < 2.5.0+dfsg-2 | 2.5.0+dfsg-2 |
| cisco openh264 | = < 2.6.0 | No fix listed |
| ubuntu/openh264(Ubuntu:22.04) | All versions | No fix listed |
| alpine/openh264(Alpine:v3.21) | < 2.6.0-r0 | 2.6.0-r0 |
| alpine/openh264(Alpine:v3.22) | < 2.6.0-r0 | 2.6.0-r0 |
| alpine/openh264(Alpine:v3.23) | < 2.6.0-r0 | 2.6.0-r0 |
| alpine/openh264(Alpine:v3.24) | < 2.6.0-r0 | 2.6.0-r0 |
| ubuntu/openh264(Ubuntu:24.04) | All versions | No fix listed |
| cisco openh264 | < 2.5.1 | 2.5.1 |
References
- Debian Security Tracker CVE-2025-27091 vendor-advisory
- https://github.com/cisco/openh264/security/advisories/GHSA-m99q-5j7x-7m9x vendor-advisory
- https://github.com/cisco/openh264/releases/tag/v2.6.0 release-notes
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking