ZDI-25-267: 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.
Other sources
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 ZDI has assigned a CVSS rating of 8.8. The following CVEs are assigned: CVE-2025-3887.
— ZDI
Affected Software
Event History
Frequently Asked Questions
What is the severity of ZDI-25-267?
The severity of ZDI-25-267 is rated at 8.8, indicating high risk.
How do I fix ZDI-25-267?
To fix ZDI-25-267, upgrade to the latest version of GStreamer that addresses this vulnerability.
What type of attacks can ZDI-25-267 lead to?
ZDI-25-267 can allow remote attackers to execute arbitrary code on affected installations of GStreamer.
Who is affected by ZDI-25-267?
Any installation of GStreamer that relies on implementations vulnerable to ZDI-25-267 is affected.
What are the prerequisites for exploiting ZDI-25-267?
Interaction with the GStreamer library is required to exploit the ZDI-25-267 vulnerability.