CVE-2024-47540
CVE-2024-47540 is a critical-severity vulnerability in Gstreamer with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-908.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- CVSS v4: 8.6
- EPSS exploit prediction: 1% (59th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-42800
- Weakness: CWE-908
- Affected product: Gstreamer
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-47540?
- 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.
- How severe is CVE-2024-47540?
- CVE-2024-47540 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2024-47540 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (59th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-47540?
- CVE-2024-47540 affects Gstreamer. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-47540?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2024-47540 have an EU (EUVD) identifier?
- Yes. CVE-2024-47540 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-42800.
- When was CVE-2024-47540 published?
- CVE-2024-47540 was published on 2024-12-12 and last updated on 2026-06-17.
References
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8057.patch
- https://gstreamer.freedesktop.org/security/sa-2024-0017.html
- https://securitylab.github.com/advisories/GHSL-2024-197_GStreamer/
- https://lists.debian.org/debian-lts-announce/2025/02/msg00035.html
Affected products (1)
- cpe:2.3:a:gstreamer:gstreamer:*:*:*:*:*:*:*:*
More vulnerabilities in Gstreamer
- CVE-2024-47615 — Critical (CVSS 9.8): GStreamer is a library for constructing graphs of media-handling components. An OOB-Write has been detected in the…
- CVE-2024-47613 — Critical (CVSS 9.8): GStreamer is a library for constructing graphs of media-handling components. A null pointer dereference vulnerability…
- CVE-2024-47607 — Critical (CVSS 9.8): GStreamer is a library for constructing graphs of media-handling components. stack-buffer overflow has been detected…
- CVE-2024-47606 — Critical (CVSS 9.8): GStreamer is a library for constructing graphs of media-handling components. An integer underflow has been detected in…
- CVE-2024-47539 — Critical (CVSS 9.8): GStreamer is a library for constructing graphs of media-handling components. An out-of-bounds write vulnerability was…
- CVE-2024-47538 — Critical (CVSS 9.8): GStreamer is a library for constructing graphs of media-handling components. A stack-buffer overflow has been detected…
All CVEs affecting Gstreamer →
Other CWE-908 (Use of Uninitialized Resource) vulnerabilities
- CVE-2025-1942 — Critical (CVSS 9.8): When String.toUpperCase() caused a string to get longer it was possible for uninitialized memory to be incorporated…
- CVE-2024-32611 — Critical (CVSS 9.8): HDF5 Library through 1.14.3 may use an uninitialized value in H5A__attr_release_table in H5Aint.c.
- CVE-2023-24941 — Critical (CVSS 9.8): Windows Network File System Remote Code Execution Vulnerability
- CVE-2022-26437 — Critical (CVSS 9.8): In httpclient, there is a possible out of bounds write due to uninitialized data. This could lead to remote escalation…
- CVE-2021-45703 — Critical (CVSS 9.8): An issue was discovered in the tectonic_xdv crate before 0.1.12 for Rust. XdvParser::<T>::process may read from…
- CVE-2021-45693 — Critical (CVSS 9.8): An issue was discovered in the messagepack-rs crate through 2021-01-26 for Rust. deserialize_string_primitive may read…
Browse all CWE-908 (Use of Uninitialized Resource) vulnerabilities →