# CVE-2024-47540: GHSL-2024-197: GStreamer uses uninitialized stack memory in Matroska/WebM demuxer

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 63% of CVEs (2026-12-01)
- Published: 2024-12-11T18:54:04.383Z
- Modified: 2026-06-17T07:57:16.127Z
- Weaknesses: CWE-457, CWE-908
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

GStreamer is a library for constructing graphs of media-handling components. An uninitialized stack variable vulnerability has been identified in the gst_matroska_demux_add_wvpk_header function within matroska-demux.c. When size < 4, the program calls gst_buffer_unmap with an uninitialized map variable. Then, in the gst_memory_unmap function, the program will attempt to unmap the buffer using the uninitialized map variable, causing a function pointer hijack, as it will jump to mem->allocator->mem_unmap_full or mem->allocator->mem_unmap. This vulnerability could allow an attacker to hijack the execution flow, potentially leading to code execution. This vulnerability is fixed in 1.24.10.

(As written by CVE List.)

## Affected

- gstreamer gstreamer: < 1.24.10; before 1.24.10

## Every score

- GitHub_M: CVSS:4.0 8.6 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://securitylab.github.com/advisories/GHSL-2024-197_GStreamer/> (third-party-advisory)
- <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8057.patch> (patch)
- <https://gstreamer.freedesktop.org/security/sa-2024-0017.html> (release-notes)
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00035.html>

## Sources

- CVE List: [CVE-2024-47540](https://www.cve.org/CVERecord?id=CVE-2024-47540), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-47540](https://nvd.nist.gov/vuln/detail/CVE-2024-47540), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47540 · Whole record: https://cve.day/CVE-2024-47540.json · Rebuilt by cve.day 2026-11-25T22:58:49.961Z
