Skip to content
OpenAdvisories
High · 8.8 CVE-2023-40476 EUVD-2023-45047GHSA-jh94-w345-vcxj

GStreamer H265 Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

Published May 3, 2024 · Updated Nov 4, 2025 · Assigned by zdi

Description

GStreamer H265 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 encoded video files. 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-21768.

Affected products

VendorProductAffectedFixed
GStreamer GStreamer 1.22.4 and 8dddb9ad2009705dfc3e50d59d7c56fc7314cfc3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gst-plugins-bad1.0 1.22.7-1 —
Debian 13 gst-plugins-bad1.0 1.22.7-1 —
Debian 12 gst-plugins-bad1.0 1.22.0-4+deb12u2 DSA-5533-1
Debian 11 gst-plugins-bad1.0 1.18.4-3+deb11u2 DSA-5533-1
Debian 10 gst-plugins-bad1.0 1.14.4-1+deb10u4 DLA-3633-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS gst-plugins-bad1.0 1.20.3-0ubuntu1.1 USN-6526-1
Ubuntu 20.04 LTS gst-plugins-bad1.0 1.16.3-0ubuntu1.1 USN-6526-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS gst-plugins-bad1.0 1.14.5-0ubuntu1~18.04.1+esm1 —
Ubuntu Pro 16.04 LTS gst-plugins-bad1.0 1.8.3-1ubuntu0.2+esm1 —
ReleasePackageFixed inAdvisory
RHEL 9 gstreamer1-plugins-bad-free +1 1.22.1-4.el9 RHSA-2024:2287
RHEL 8 gstreamer1-plugins-bad-free +1 1.16.1-4.el8 RHSA-2024:3060

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 gstreamer1-plugins-bad-free +1 1.22.1-4.el9 ALSA-2024:2287
AlmaLinux 8 gstreamer1-plugins-bad-free +1 1.16.1-4.el8 ALSA-2024:3060

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 gstreamer1-plugins-bad-free 1.22.1-4.el9 RLSA-2024:2287
Rocky Linux 8 gstreamer1-plugins-bad-free 1.16.1-4.el8 RLSA-2024:3060
ReleasePackageFixed inAdvisory
SLES 15 SP5 gstreamer-plugins-bad 1.22.0-150500.3.9.1 SUSE-SU-2023:4574-1
SLES 15 SP4 gstreamer-plugins-bad 1.20.1-150400.3.9.1 SUSE-SU-2023:4575-1
SLES 15 SP3 gstreamer-plugins-bad 1.16.3-150300.9.12.2 SUSE-SU-2023:4594-1
SLES 15 SP2 gstreamer-plugins-bad 1.16.3-150200.4.13.2 SUSE-SU-2023:4595-1
SLES 15 SP1 gstreamer-plugins-bad 1.12.5-150000.3.15.1 SUSE-SU-2023:4596-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 gstreamer-plugins-bad 1.8.3-18.9.3 SUSE-SU-2023:4597-1
SLES for SAP 15 SP3 gstreamer-plugins-bad 1.16.3-150300.9.12.2 SUSE-SU-2023:4594-1
SLES for SAP 15 SP2 gstreamer-plugins-bad 1.16.3-150200.4.13.2 SUSE-SU-2023:4595-1
SLES for SAP 15 SP1 gstreamer-plugins-bad 1.12.5-150000.3.15.1 SUSE-SU-2023:4596-1
SLES for SAP 12 SP5 gstreamer-plugins-bad 1.8.3-18.9.3 SUSE-SU-2023:4597-1
SLE HPC 15 SP3 gstreamer-plugins-bad 1.16.3-150300.9.12.2 SUSE-SU-2023:4594-1
SLE HPC 15 SP2 gstreamer-plugins-bad 1.16.3-150200.4.13.2 SUSE-SU-2023:4595-1
SLE HPC 15 SP1 gstreamer-plugins-bad 1.12.5-150000.3.15.1 SUSE-SU-2023:4596-1
SUSE Enterprise Storage 7.1 gstreamer-plugins-bad 1.16.3-150300.9.12.2 SUSE-SU-2023:4594-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 gstreamer-plugins-bad 1.22.0-lp155.3.7.1 openSUSE-SU-2023:0409-1
openSUSE Leap 15.4 gstreamer-plugins-bad 1.22.0-lp155.3.7.1 openSUSE-SU-2023:0409-1
ReleasePackageFixed inAdvisory
Alpine v3.24 gst-plugins-bad 1.22.6-r0 —
Alpine v3.23 gst-plugins-bad 1.22.6-r0 —
Alpine v3.22 gst-plugins-bad 1.22.6-r0 —
Alpine v3.21 gst-plugins-bad 1.22.6-r0 —
Alpine v3.20 gst-plugins-bad 1.22.6-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 gst-plugins-bad 1.22.6-r0 —
Alpine v3.18 gst-plugins-bad 1.22.7-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 gstreamer1-plugins-bad-free +1 1.18.4-5.amzn2.0.2 ALAS2-2023-2298

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 gstreamer1-plugins-bad-free +1 1.22.1-4.el9 ELSA-2024-2287
Oracle Linux 8 gstreamer1-plugins-bad-free +1 1.16.1-4.0.1.el8 ELSA-2024-3060

Advisories 20

References