Vulnerability · Published Feb 20, 2025 · Assigned by GitHub_M
CVE-2025-27091OpenH264 Decoding Functions Heap Overflow Vulnerability
High 8.6
In plain English
A high-severity heap buffer overflow in openh264 from cisco. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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](https://github.com/cisco/openh264/issues) * Email Cisco Open Source Security ([oss-security@cisco.com](mailto:oss-security@cisco.com)) and Cisco PSIRT ([psirt@cisco.com](mailto: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)
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | openh264 | 2.6.0-r0 | ALPINE-CVE-2025-27091 |
| Alpine:v3.22 | openh264 | 2.6.0-r0 | ALPINE-CVE-2025-27091 |
| Alpine:v3.23 | openh264 | 2.6.0-r0 | ALPINE-CVE-2025-27091 |
| Alpine:v3.24 | openh264 | 2.6.0-r0 | ALPINE-CVE-2025-27091 |
| Debian:12 | openh264 | 2.3.1+dfsg-3+deb12u1 | DSA-5870-1 |
| Debian:12 | openh264 | 2.3.1+dfsg-3+deb12u1 | DEBIAN-CVE-2025-27091 |
| Debian:13 | openh264 | 2.5.0+dfsg-2 | DEBIAN-CVE-2025-27091 |
| Debian:14 | openh264 | 2.5.0+dfsg-2 | DEBIAN-CVE-2025-27091 |
| Ubuntu:22.04:LTS | openh264 | no fix listed | UBUNTU-CVE-2025-27091 |
| Ubuntu:24.04:LTS | openh264 | no fix listed | UBUNTU-CVE-2025-27091 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/cisco/openh264/security/advisories/GHSA-m99q-5j7x-7m9x x_refsource_CONFIRM
- https://github.com/cisco/openh264/releases/tag/v2.6.0 x_refsource_MISC