{"id":"CVE-2025-6663","summary":"GStreamer H266 Codec Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability","details":"GStreamer H266 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.\n\nThe specific flaw exists within the parsing of H266 sei messages. 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-27381.","modified":"2026-08-12T15:14:42.271736Z","published":"2025-07-07T14:58:01.368Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6663.json","unresolved_ranges":[{"extracted_events":[{"introduced":"97fec43422c4b62d569957d721c899bdaaa9da61"},{"last_affected":"97fec43422c4b62d569957d721c899bdaaa9da61"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"zdi","cwe_ids":["CWE-121"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6663.json"},{"type":"ADVISORY","url":"https://gitlab.freedesktop.org/tpm/gstreamer/-/commit/eedd01ac3dfeb60e36a44bb61a6d0418454e8416"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6663"},{"type":"ADVISORY","url":"https://www.zerodayinitiative.com/advisories/ZDI-25-467/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gstreamer/gstreamer","events":[{"introduced":"d31ce8e5e1aacf8f5e5beabb5c81ce2e4da5c202"},{"fixed":"87bc0c6e949e3dcc440658f78ef52aa8088cb62f"}],"database_specific":{"cpe":"cpe:2.3:a:gstreamer:gstreamer:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"1.26.0"},{"fixed":"1.26.3"}],"source":"CPE_RANGE"}}],"versions":["1.26.2","1.26.1","1.26.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-6663.json"}},{"ranges":[{"type":"GIT","repo":"https://gitlab.freedesktop.org/tpm/gstreamer","events":[{"introduced":"0"},{"fixed":"eedd01ac3dfeb60e36a44bb61a6d0418454e8416"}],"database_specific":{"source":"REFERENCES"}}],"versions":["1.26.0","1.25.90","1.25.50","1.25.1","1.24.0","1.23.90","1.23.2","1.23.1","1.22.0","1.21.90","1.21.3","1.21.2","1.21.1","1.20.0","1.19.90","1.19.3","1.19.2","1.19.1","1.18.0","1.17.90","1.17.2","1.17.1","1.16.0","1.15.90","1.15.2","1.15.1","1.14.0","1.13.91","1.13.90","1.13.1","1.12.0","1.11.91","1.11.90","1.11.2","1.11.1","1.10.0","1.11.0","1.9.90","1.9.2","1.9.1","1.8.0","1.7.91","1.7.90","1.7.2","1.7.1","1.6.0","1.5.91","1.5.90","1.5.2","1.5.1","1.4.0","1.3.91","1.3.90","1.3.3","1.3.2","1.3.1","1.2.0","1.1.90","1.1.4","1.1.3","1.1.2","1.1.1","1.0.2","1.0.1","1.0.0","RELEASE-0.11.99","RELEASE-0.11.94","RELEASE-0.11.93","RELEASE-0.11.92","RELEASE-0.11.91","RELEASE-0.11.90","RELEASE-0.11.2","RELEASE-0.11.1","RELEASE-0.11.0","RELEASE-0.10.31","RELEASE-0.10.30","RELEASE-0.10.29","RELEASE-0.10.28","RELEASE-0.10.27","RELEASE-0.10.26","RELEASE-0.10.25","RELEASE-0.10.24","RELEASE-0.10.23","RELEASE-0_10_22","GIT_CONVERSION","RELEASE-0_10_21","RELEASE-0_10_20","RELEASE-0_10_18","RELEASE-0_10_17","RELEASE-0_10_16","RELEASE-0_10_15","RELEASE-0_10_14","RELEASE-0_10_13","RELEASE-0_10_12","RELEASE-0_10_11","RELEASE-0_10_10","RELEASE-0_10_9","RELEASE-0_10_8","RELEASE-0_10_7","RELEASE-0_10_6","RELEASE-0_10_5","RELEASE-0_10_4","RELEASE-0_10_3","RELEASE-0_10_2","RELEASE-0_10_1","RELEASE-0_10_0","RELEASE-0_9_7","RELEASE-0_9_6","RELEASE-0_9_5","RELEASE-0_9_4","RELEASE-0_9_3","RELEASE-0_9_2","CHANGELOG_START","BRANCH-GSTREAMER-0_8-ROOT","BRANCH-GSTREAMER-0_6-ROOT","RELEASE-0_8_9","RELEASE-0_8_8","RELEASE-0_8_7","RELEASE-0_8_6","RELEASE-0_8_4","RELEASE-0_8_3","RELEASE-0_8_2","RELEASE-0_8_1","RELEASE-0_8_0","BEFORE_INDENT","RELEASE-0_7_6","BRANCH-RELEASE-0_7_5-ROOT","BRANCH-RELEASE-0_7_4-ROOT","RELEASE-0_7_3","MOVE-TO-FDO","CAPS-MERGE-3","CAPS-MERGE-2","CAPS-MERGE-1","RELEASE-0_7_2","BRANCH-RELEASE-0_7_2-ROOT","CAPS-ROOT","TYPEFIND-ROOT","RELEASE-0_7_1","BRANCH-ERROR-ROOT","OSLOSUMMIT1-200303051","BRANCH-RELEASE-0_5_2-ROOT","BRANCH-RELEASE-0_5_1-ROOT","BRANCH-RELEASE-0_5_0-ROOT","BRANCH-RELEASE-0_4_2-ROOT","BRANCH-RELEASE-0_4_1-ROOT","BRANCH-RELEASE-0_4_0-ROOT","BRANCH-RELEASE-0_3_4-ROOT","BRANCH-RELEASE-0_3_3-ROOT","BRANCH-EVENTS2-ROOT","start","RELEASE-0_3_2-DOBDAY","DEBIAN-0_3_1-1","RELEASE-0_3_1-BELGIANBEER","BRANCH-BUILD1-20011216-FREEZE","RELEASE-0_3_0-EVENTFUL","BRANCH-BUILD1-200112101-ROOT","BRANCH-BUILD1-200112061-ROOT","BRANCH-BUILD1-ROOT","EVENTS1-200110161-FREEZE","BRANCH-EVENTS1-200110161-ROOT","BRANCH-EVENTS1-ROOT","RELEASE-0_2_1-UNKN","RELEASE-0_2_1-SEDIMASTER","GOBJECT1-200106241","GOBJECT1-200106241-FREEZE","BRANCH-GOBJECT1-200106241-ROOT","RELEASE-0_2_0-CRITICALMASS","BRANCH-GOBJECT1-ROOT","INCSCHED1-200105251","INCSCHED1-200105251-FREEZE","BRANCH-INCSCHED1-200105251-ROOT","BRANCH-INCSCHED1-200105231-ROOT","BRANCH-INCSCHED1-200104251-ROOT","PLUGINVER1-20010422","PLUGINVER1-20010422-FREEZE","BRANCH-PLUGINVER1-20010422-ROOT","BRANCH-PLUGINVER1-ROOT","BRANCH-INCSCHED1-200104161-ROOT","HEAD-20010312-PRE_CAPSNEGO1","HEAD-20010306-PRE_AUTOPLUG2","RELEASE-0_1_1-DUCTTAPE","BRANCH-CAPSNEGO1-ROOT","BRANCH-INCSCHED1-ROOT","BRANCH-AUTOPLUG2-ROOT","RELEASE-0_1_0-SLIPSTREAM"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-6663.json","vanir_signatures_modified":"2026-08-12T15:14:42Z","vanir_signatures":[{"deprecated":false,"digest":{"function_hash":"59396683329592101066390449792267569397","length":1309},"id":"CVE-2025-6663-16ee0d02","signature_type":"Function","signature_version":"v1","source":"https://gitlab.freedesktop.org/tpm/gstreamer@eedd01ac3dfeb60e36a44bb61a6d0418454e8416","target":{"file":"subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth266parser.c","function":"gst_h266_parser_parse_subpic_level_info"}},{"signature_type":"Line","signature_version":"v1","source":"https://gitlab.freedesktop.org/tpm/gstreamer@eedd01ac3dfeb60e36a44bb61a6d0418454e8416","target":{"file":"subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth266parser.c"},"deprecated":false,"digest":{"line_hashes":["322408239375824235697640610182103157177","329466281688453152582059337400564552111","168822257613181838628534821740698720000","84112443985815107248594045212452426335"],"threshold":0.9},"id":"CVE-2025-6663-32998ece"},{"source":"https://gitlab.freedesktop.org/tpm/gstreamer@eedd01ac3dfeb60e36a44bb61a6d0418454e8416","target":{"file":"subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth266parser.h"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["282721078568479293220300600191289648421","207950569463079125622255997821643194131","122461571103047695134343158452303403193","61310300654916042450068896710544154369","300671058316152478926398899082983972055","254139904553242124958572292244909832683","161270349155485064805213336790063386020","5487045547213773508244965838854026915","305777191737961159622308043516693816406"]},"id":"CVE-2025-6663-86225344","signature_type":"Line","signature_version":"v1"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}