CVE-2023-40476: gstreamer Stack-based Buffer Overflow
Vulnerability summary
CVE-2023-40476 is a high (CVSS 8.8) Stack-based Buffer Overflow vulnerability in gstreamer. EPSS estimates a 2.26% chance of exploitation in the next 30 days, higher than 82.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 13 · Related 9Timeline
- 03-05-2024PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 4 sources · 2 versions- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.26%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
+0.25 pp
From 2.01% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian1 product
- gst-plugins-bad1.0< 1.22.0-4+deb12u2 | < 1.22.7-1
Gstreamer1 product
- gstreamerEOL1.22.4 and 8dddb9ad2009705dfc3e50d59d7c56fc7314cfc3 | < 1.22.6
Ubuntu1 product
- gst-plugins-bad1.0< 1.8.3-1ubuntu0.2+esm1 | < 1.14.5-0ubuntu1~18.04.1+esm1 | < 1.16.3-0ubuntu1.1 | < 1.20.3-0ubuntu1.1
3 vendors · 3 products