CVE-2023-40476
GStreamer H265 Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability
Reported by zdi · Published May 3, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| gstreamer | gstreamer | 1.22.6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| GStreamer | GStreamer | 1.22.4 and 8dddb9ad2009705dfc3e50d59d7c56fc7314cfc3 |
| gstreamer | gstreamer | 0 |
| GStreamer | GStreamer | 1.22.4 |
| amazon:2 | gstreamer1-plugins-bad-free | 0 |
| amazon:2 | gstreamer1-plugins-bad-free-devel | 0 |
| alpine | gst-plugins-bad | 0, 0 |
Timeline
- Sep 20, 2023 CVE Published
- May 3, 2024 EPSS Score (30 in total, the first dated here)
- Mar 26, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 26, 2026 Security Advisory (8 in total, the first dated here)
- Aug 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-40476
vulnetix vdb fixes CVE-2023-40476
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-40476/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- ZDI-23-1458 x_research-advisory
- vendor-provided URL vendor-advisory
- https://lists.debian.org/debian-lts-announce/2023/10/msg00038.html advisory