{"schemaVersion":3,"id":"CVE-2023-40476","aliases":["UBUNTU-CVE-2023-40476","DEBIAN-CVE-2023-40476"],"status":"published","duplicateOf":null,"title":null,"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.\n\nThe 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.\n. Was ZDI-CAN-21768.","dates":{"published":"2024-05-03T02:11:12.156Z","modified":"2025-11-04T19:20:09.535Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02256,"percentile":0.82792,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.247,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.02009},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01993,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01993,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01993,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01993,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02256,"percentile":0.82792}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02009,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01993,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01993,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01993,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01993,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02256,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02256,"percentile":0.82792}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-121","name":"Stack-based Buffer Overflow","description":"A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/121.html"}],"affected":[{"vendor":"debian","product":"gst-plugins-bad1.0","name":"gst-plugins-bad1.0","label":"gst-plugins-bad1.0","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/gst-plugins-bad1.0","purlType":"deb","versions":[{"text":"< 1.22.0-4+deb12u2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.22.7-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.22.0-4+deb12u2 | < 1.22.7-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gst-plugins-bad1.0","name":"gst-plugins-bad1.0","label":"gst-plugins-bad1.0","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gst-plugins-bad1.0","purlType":"deb","versions":[{"text":"< 1.8.3-1ubuntu0.2+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.14.5-0ubuntu1~18.04.1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.16.3-0ubuntu1.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.20.3-0ubuntu1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.3-1ubuntu0.2+esm1 | < 1.14.5-0ubuntu1~18.04.1+esm1 | < 1.16.3-0ubuntu1.1 | < 1.20.3-0ubuntu1.1","eol":null,"hubHref":null},{"vendor":"gstreamer","product":"gstreamer","name":"gstreamer","label":"gstreamer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.22.4 and 8dddb9ad2009705dfc3e50d59d7c56fc7314cfc3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.22.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.22.4 and 8dddb9ad2009705dfc3e50d59d7c56fc7314cfc3 | < 1.22.6","eol":{"isEol":true,"eolDate":null,"matchMethod":"cpe","cycle":{"name":"1.22","label":"1.22","eolFrom":null,"isLts":false,"isMaintained":false,"latestVersion":"1.22.12"},"product":{"name":"gstreamer","label":"GStreamer","category":"framework"}},"hubHref":"/vendor/gstreamer/gstreamer"}],"affectedCount":3,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://www.zerodayinitiative.com/advisories/ZDI-23-1458/","label":"www.zerodayinitiative.com/advisories/ZDI-23-1458/","hostname":"www.zerodayinitiative.com","tags":["X Research Advisory","REPORT","Third Party Advisory"]},{"url":"https://gstreamer.freedesktop.org/security/sa-2023-0008.html","label":"gstreamer.freedesktop.org/security/sa-2023-0008.html","hostname":"gstreamer.freedesktop.org","tags":["Vendor Advisory","REPORT","Patch","Release Notes"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/10/msg00038.html","label":"lists.debian.org/debian-lts-announce/2023/10/msg00038.html","hostname":"lists.debian.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2023-40476","label":"ubuntu.com/security/CVE-2023-40476","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5364","label":"gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5364","hostname":"gitlab.freedesktop.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6526-1","label":"ubuntu.com/security/notices/USN-6526-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-40476","label":"www.cve.org/CVERecord?id=CVE-2023-40476","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8205-1","label":"ubuntu.com/security/notices/USN-8205-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-40476","label":"security-tracker.debian.org/tracker/CVE-2023-40476","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3633-1","DSA-5533-1","MGASA-2023-0354","OPENSUSE-SU-2023:0409-1","RHSA-2024:2287","RHSA-2024:3060","SUSE-SU-2023:4574-1","SUSE-SU-2023:4575-1","SUSE-SU-2023:4594-1","SUSE-SU-2023:4595-1","SUSE-SU-2023:4596-1","SUSE-SU-2023:4597-1","USN-6526-1"],"duplicates":[],"related":["OPENSUSE-SU-2023:0409-1","SUSE-SU-2023:4574-1","SUSE-SU-2023:4575-1","SUSE-SU-2023:4594-1","SUSE-SU-2023:4595-1","SUSE-SU-2023:4596-1","SUSE-SU-2023:4597-1","USN-6526-1","USN-8205-1"]},"timeline":[{"kind":"published","date":"2024-05-03T02:11:12.156Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-04T19:20:09.535Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T14:27:50.622Z","stale":false,"partial":false}}