CVE-2025-6663

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

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
gst-plugins-bad1.0 (PTS)bullseye1.18.4-3+deb11u4fixed
bullseye (security)1.18.4-3+deb11u5fixed
bookworm1.22.0-4+deb12u5fixed
bookworm (security)1.22.0-4+deb12u6fixed
sid, trixie1.26.2-2vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gst-plugins-bad1.0sourceexperimental1.26.3-1
gst-plugins-bad1.0sourcebullseye(not affected)
gst-plugins-bad1.0sourcebookworm(not affected)
gst-plugins-bad1.0source(unstable)(unfixed)1108973

Notes

[bookworm] - gst-plugins-bad1.0 <not-affected> (Vulnerable code not present)
[bullseye] - gst-plugins-bad1.0 <not-affected> (Vulnerable code not present)
https://www.zerodayinitiative.com/advisories/ZDI-25-467/
Fixed by: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/eedd01ac3dfeb60e36a44bb61a6d0418454e8416 (main)
Fixed by: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/596cf19c0c4c92b31c4ef315a0278586b0772b93 (1.26.3)

Search for package or bug name: Reporting problems