CVE-2024-47540CWE-457

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

High · published December 11, 2024

CVSS v4.0
8.6
EPSS
1%
Percentile
62.7
In the wild
Unconfirmed
What it is

⚡ An uninitialized stack variable is the gateway to chaos! In GStreamer, if the size is less than 4, you could accidentally open a door to hijack execution flow. 🔥 Think of it as a restaurant kitchen where the chef mistakenly uses an empty ingredient container—this misstep could lead to unexpected flavors in a dish, or in our case, execution flows! An attacker could exploit this flaw to redirect the program's execution flow, potentially leading to arbitrary code execution. This could allow malicious users to run harmful commands on your system, causing significant damage and data leaks if left unaddressed!

Put simply

Think of it as a restaurant kitchen where the chef mistakenly uses an empty ingredient container—this misstep could lead to unexpected flavors in a dish, or in our case, execution flows! This vulnerability arises in the gst_matroska_demux_add_wvpk_header function where an uninitialized stack variable is used, leading to unsafe handling in the gst_memory_unmap function that can hijack execution flow due to improper memory access.

What to do

An attacker could exploit this flaw to redirect the program's execution flow, potentially leading to arbitrary code execution. This could allow malicious users to run harmful commands on your system, causing significant damage and data leaks if left unaddressed! To mitigate this risk, update GStreamer to version 1.24.10 immediately. Additionally, review your usage of media components for other similar vulnerabilities and ensure that uninitialized variables are handled securely in your code. You've got this! With the right updates and practices, you'll seal this vulnerability tight! 🛡️

The record
Technical detail
CVSS v4.0
8.6 · HIGH
Vector
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
EPSS
0.01007 · 62.7th percentile
Weakness
CWE-457 · Use of Uninitialized Variable
Published
2024-12-11T18:54Z
EPSS history
Timeline
  • 11 DEC 18:54Z
    GHSL-2024-197: GStreamer uses uninitialized stack memory in Matroska/WebM demuxer
    cvelistv5