CVE-2024-47540
GHSL-2024-197: GStreamer uses uninitialized stack memory in Matroska/WebM demuxer
Reported by github_m · Published December 11, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| gst-plugins-good | Alpine | 1.24.10-r0 |
| gstreamer1-plugins-good | Amazon Linux | 1.18.4-6.amzn2.0.4 |
| gstreamer1-plugins-good-gtk | Amazon Linux | 1.18.4-6.amzn2.0.4 |
| gstreamer | gstreamer | 1.24.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gstreamer | gstreamer | < 1.24.10 |
| alpine | gst-plugins-good | 0 |
| amazon:2 | gstreamer1-plugins-good | 0 |
| amazon:2 | gstreamer1-plugins-good-gtk | 0 |
| gstreamer | gstreamer | 0 |
Timeline
- Dec 3, 2024 CVE Published
- Dec 12, 2024 EPSS Score (30 in total, the first dated here)
- Apr 2, 2025 Coalition ESS Score (12 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Jan 4, 2026 Security Advisory (41 in total, the first dated here)
- Oct 15, 2026 Distribution Patch (25 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-47540
vulnetix vdb fixes CVE-2024-47540
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-47540/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://securitylab.github.com/advisories/GHSL-2024-197_GStreamer/ x_refsource_CONFIRM
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8057.patch x_refsource_MISC
- https://gstreamer.freedesktop.org/security/sa-2024-0017.html x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/02/msg00035.html advisory