Vulnerability · Published May 22, 2025 · Assigned by zdi
CVE-2025-3887GStreamer H265 Codec Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability
High 8.8
In plain English
A high-severity stack buffer overflow in GStreamer from GStreamer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
GStreamer H265 Codec Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit this vulnerability but attack vectors may vary depending on the implementation. The specific flaw exists within the parsing of H265 slice headers. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-26596.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | gstreamer1-plugins-bad-free | 1.24.11-2.el10_0 | ALSA-2025:8184 |
| AlmaLinux:8 | gstreamer1-plugins-bad-free | 1.16.1-5.el8_10 | ALSA-2025:8201 |
| AlmaLinux:9 | gstreamer1-plugins-bad-free | 1.22.12-4.el9_6 | ALSA-2025:8183 |
| AlmaLinux:10 | gstreamer1-plugins-bad-free-devel | 1.24.11-2.el10_0 | ALSA-2025:8184 |
| AlmaLinux:8 | gstreamer1-plugins-bad-free-devel | 1.16.1-5.el8_10 | ALSA-2025:8201 |
| AlmaLinux:9 | gstreamer1-plugins-bad-free-devel | 1.22.12-4.el9_6 | ALSA-2025:8183 |
| AlmaLinux:10 | gstreamer1-plugins-bad-free-libs | 1.24.11-2.el10_0 | ALSA-2025:8184 |
| AlmaLinux:9 | gstreamer1-plugins-bad-free-libs | 1.22.12-4.el9_6 | ALSA-2025:8183 |
| Alpine:v3.22 | gst-plugins-bad | 1.26.1-r0 | ALPINE-CVE-2025-3887 |
| Alpine:v3.23 | gst-plugins-bad | 1.26.1-r0 | ALPINE-CVE-2025-3887 |
| Alpine:v3.24 | gst-plugins-bad | 1.26.1-r0 | ALPINE-CVE-2025-3887 |
| Debian:12 | gst-plugins-bad1.0 | 1.22.0-4+deb12u6 | DSA-5941-1 |
| Debian:12 | gst-plugins-bad1.0 | 1.22.0-4+deb12u6 | DEBIAN-CVE-2025-3887 |
| Debian:13 | gst-plugins-bad1.0 | 1.26.1-1 | DEBIAN-CVE-2025-3887 |
| Debian:14 | gst-plugins-bad1.0 | 1.26.1-1 | DEBIAN-CVE-2025-3887 |
| Rocky Linux:10 | gstreamer1-plugins-bad-free | 0:1.24.11-2.el10_0 | RLSA-2025:8184 |
| Rocky Linux:8 | gstreamer1-plugins-bad-free | 0:1.16.1-5.el8_10 | RLSA-2025:8201 |
| Rocky Linux:9 | gstreamer1-plugins-bad-free | 0:1.22.12-4.el9_6 | RLSA-2025:8183 |
Affected products (as reported)
Weakness: CWE-121 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- ZDI-25-267 x_research-advisory
- https://lists.debian.org/debian-lts-announce/2025/06/msg00017.html