cbcvebase.
CVE-2025-3887
published 2025-05-22

CVE-2025-3887: GStreamer H265 Codec Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary…

PriorityP258high8.8CVSS 3.0
AVNACLPRNUIRSUCHIHAH
EPSS
0.73%
50.3th percentile
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

5 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiangst-plugins-bad1.0< gst-plugins-bad1.0 1.22.0-4+deb12u6 (bookworm)gst-plugins-bad1.0 1.22.0-4+deb12u6 (bookworm)
gstreamergstreamer
gstreamergstreamer>= 1.0.0 < 1.26.11.26.1
ubuntugst-plugins-bad1.0

Detection & IOCsextracted from sources · hover to see the quote

  • The vulnerability exists within the parsing of H265 slice headers in GStreamer's H265 codec plugin (gstreamer1-plugins-bad / gstreamer-plugins-bad). Monitor for processing of malformed H265/HEVC media files, particularly those with oversized slice header data that could trigger a stack-based buffer overflow.
  • The affected component is the GStreamer Bad Plugins H265 codec plugin. On Red Hat/Fedora systems, the vulnerable package is mingw-gstreamer1-plugins-bad-free (RHEL 8 affected) and gstreamer1-plugins-bad-free (RHEL 7 not affected). Audit installed versions and flag unpatched deployments.
  • Attack vectors vary by implementation but require interaction with the GStreamer library. Any application that uses GStreamer to parse untrusted H265/HEVC media content (e.g., video players, media servers, streaming pipelines) is a potential attack surface.
  • Successful exploitation results in arbitrary code execution in the context of the current process. Correlate unexpected crashes or code execution events in processes that invoke GStreamer H265 decoding pipelines with suspicious or externally-sourced media input.
  • ·Red Hat notes that stack protection mitigations (FORTIFY_SOURCE, PIE, Stack Smashing Protection) are in place on RHEL builds, which may reduce exploitability. Severity assessments should account for whether these mitigations are active in the target environment.
  • ·On Debian, fixed versions are available: bookworm (1.22.0-4+deb12u6), bullseye (1.18.4-3+deb11u5), forky/sid/trixie (1.26.1-1). Systems running older versions remain vulnerable.
  • ·RHEL 7 with gstreamer1-plugins-bad-free is listed as Not Affected; only RHEL 8 with mingw-gstreamer1-plugins-bad-free is confirmed Affected. Scope assessments should differentiate between these package variants.

CVSS provenance

nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_debian8.8HIGH
vendor_redhat8.8HIGH
vendor_ubuntu8.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.