CVE-2025-3887

NameCVE-2025-3887
DescriptionGStreamer 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1106285

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
gst-plugins-bad1.0 (PTS)bullseye (security), bullseye1.18.4-3+deb11u4vulnerable
bookworm, bookworm (security)1.22.0-4+deb12u5vulnerable
sid, trixie1.26.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gst-plugins-bad1.0source(unstable)1.26.1-11106285

Notes

https://gstreamer.freedesktop.org/security/sa-2025-0001.html
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/d0e18d6353e4e448ccf3b06a967b394e664dd0b5 (main)
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/b33ba2f264c8e39c7794e7452b7b57d48fab3f13 (main)
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/5463f0e09768ca90aa8c58357c1f4c645db580db (1.26.1)
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/bcaab3609805ea10fb3d9ac0c9d947b4c3563948 (1.26.1)
https://www.zerodayinitiative.com/advisories/ZDI-25-267/

Search for package or bug name: Reporting problems