# CVE-2023-40476: GStreamer H265 Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-03 · Modified: 2025-11-04
- Aliases: UBUNTU-CVE-2023-40476, DEBIAN-CVE-2023-40476, ALPINE-CVE-2023-40476
- Record: https://cvemate.com/vulnerability/CVE-2023-40476 · JSON: https://cvemate.com/vulnerability/CVE-2023-40476/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 2.256%, percentile 83.541%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine gst-plugins-bad (Alpine Linux): \< 1.22.7-r0 \| \< 1.22.6-r0
- debian gst-plugins-bad1.0 (Debian): \< 1.22.0-4+deb12u2 \| \< 1.22.7-1
- ubuntu gst-plugins-bad1.0 (Ubuntu): \< 1.8.3-1ubuntu0.2+esm1 \| \< 1.14.5-0ubuntu1~18.04.1+esm1 \| \< 1.16.3-0ubuntu1.1 \| \< 1.20.3-0ubuntu1.1
- gstreamer gstreamer: 1.22.4 and 8dddb9ad2009705dfc3e50d59d7c56fc7314cfc3 \| \< 1.22.6

## References

- <https://www.zerodayinitiative.com/advisories/ZDI-23-1458/>
- <https://gstreamer.freedesktop.org/security/sa-2023-0008.html>
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00038.html>
- <https://ubuntu.com/security/CVE-2023-40476>
- <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5364>
- <https://ubuntu.com/security/notices/USN-6526-1>
- <https://www.cve.org/CVERecord?id=CVE-2023-40476>
- <https://ubuntu.com/security/notices/USN-8205-1>
- <https://security-tracker.debian.org/tracker/CVE-2023-40476>
- <https://security.alpinelinux.org/vuln/CVE-2023-40476>

---

Data as of 2026-12-05T09:39:20.742Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
