CVE-2023-40476: GStreamer H265 Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability
[Integer overflow in H.265 video parser leading to stack overwrite]
Other sources
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.
— MITRE
Stack-based buffer overflow in the H.265 video parser when handling malformed H.265 video streams in GStreamer versions before 1.22.6 It is possible for a malicious third party to trigger a crash in the application, and possibly also effect code execution through stack manipulation.
https://gstreamer.freedesktop.org/security/sa-2023-0008.html
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/gst-plugins-bad1.0to a version that resolves this vulnerability.Fixed in 1.16.3-0ubuntu1.1 - Upgrade
Upgrade
ubuntu/gst-plugins-bad1.0to a version that resolves this vulnerability.Fixed in 1.20.3-0ubuntu1.1 - Upgrade
Upgrade
ubuntu/gst-plugins-bad1.0to a version that resolves this vulnerability.Fixed in 1.22.1-1ubuntu1.1 - Upgrade
Upgrade
ubuntu/gst-plugins-bad1.0to a version that resolves this vulnerability.Fixed in 1.22.4-1ubuntu1.1 - Upgrade
Upgrade
debian/gst-plugins-bad1.0to a version that resolves this vulnerability.Fixed in 1.14.4-1+deb10u5Fixed in 1.18.4-3+deb11u4Fixed in 1.22.0-4+deb12u5Fixed in 1.22.10-1Fixed in 1.24.2-3 - Upgrade
Upgrade
redhat/gstreamer-plugins-badto a version that resolves this vulnerability.Fixed in 1.22.6 - Upgrade
Upgrade
GStreamerto a version that resolves this vulnerability.Fixed in 1.22.6Patch ZDI-CAN-21768 - Compensating control
Limit exposure to untrusted or malformed H.265 video streams (since interaction with GStreamer is required to exploit and a malicious stream can trigger a crash and possibly code execution).
Event History
Frequently Asked Questions
What is CVE-2023-40476?
CVE-2023-40476 is a vulnerability in GStreamer that allows remote attackers to execute arbitrary code on affected installations.
What is the severity of CVE-2023-40476?
CVE-2023-40476 has a severity rating of 8.8 (High).
Which software versions are affected by CVE-2023-40476?
CVE-2023-40476 affects GStreamer versions 1.14.4-1+deb10u5, 1.18.4-3+deb11u3, 1.22.0-4+deb12u3, 1.22.7-1, 1.16.3-0ubuntu1.1, 1.20.3-0ubuntu1.1, 1.22.1-1ubuntu1.1, 1.22.4-1ubuntu1.1.
How does CVE-2023-40476 exploit work?
Exploiting CVE-2023-40476 requires interaction with the GStreamer library, but the specific attack vectors may vary depending on the implementation.
Where can I find more information about CVE-2023-40476?
More information about CVE-2023-40476 can be found at the MITRE CVE website, the GStreamer security advisory SA-2023-0008, and the Zero Day Initiative advisory ZDI-23-1458.