CVE-2024-47597 in GStreamerinfo

Summary

by MITRE • 12/12/2024

GStreamer is a library for constructing graphs of media-handling components. An OOB-read has been detected in the function qtdemux_parse_samples within qtdemux.c. This issue arises when the function qtdemux_parse_samples reads data beyond the boundaries of the stream->stco buffer. The following code snippet shows the call to qt_atom_parser_get_offset_unchecked, which leads to the OOB-read when parsing the provided GHSL-2024-245_crash1.mp4 file. This issue may lead to read up to 8 bytes out-of-bounds. This vulnerability is fixed in 1.24.10.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 02/18/2025

The vulnerability identified as CVE-2024-47597 represents a critical out-of-bounds read condition within the GStreamer multimedia framework's qtdemux component. This issue manifests specifically within the qtdemux_parse_samples function located in qtdemux.c, where the software fails to properly validate buffer boundaries during media file parsing operations. The flaw occurs when processing specially crafted media files, particularly the GHSL-2024-245_crash1.mp4 file referenced in the vulnerability report, demonstrating how maliciously constructed media content can trigger the vulnerability through improper memory access patterns.

The technical implementation of this vulnerability stems from the qt_atom_parser_get_offset_unchecked function call which bypasses normal boundary checking mechanisms. When the qtdemux component attempts to parse the stco (chunk offset) atom within QuickTime media files, it reads data beyond the allocated buffer boundaries of stream->stco. This particular memory access pattern allows for up to 8 bytes of out-of-bounds reading, potentially exposing sensitive memory contents or causing application instability. The vulnerability operates at the level of media parsing and stream handling within the GStreamer framework, making it particularly dangerous as it can be triggered through normal media file processing operations.

From an operational perspective, this vulnerability poses significant security risks to systems that utilize GStreamer for media processing, including web browsers, media players, content management systems, and multimedia applications. The out-of-bounds read could potentially be exploited to extract information from adjacent memory regions, leading to data leakage or, in more sophisticated attack scenarios, could be combined with other vulnerabilities to achieve remote code execution. The impact extends beyond simple application crashes as the vulnerability could be leveraged to bypass security controls or extract sensitive information from the affected systems. This type of vulnerability is particularly concerning in environments where untrusted media files are processed, as it can be triggered through simple file uploads or streaming operations.

The vulnerability aligns with CWE-125, which describes out-of-bounds read conditions in software systems, and represents a classic example of insufficient boundary checking in memory management operations. From an attack framework perspective, this vulnerability could be categorized under ATT&CK technique T1059.007 for command and scripting interpreter, as it may enable adversaries to extract information from system memory or potentially establish persistent access through information disclosure. The fix implemented in GStreamer version 1.24.10 includes proper bounds checking and validation of buffer access patterns within the qtdemux component, specifically addressing the improper handling of the stco atom parsing operations. Organizations should immediately upgrade to the patched version and implement additional security controls including media file validation, sandboxing of media processing operations, and network segmentation to limit potential attack surface exposure.

Responsible

GitHub M

Reservation

09/27/2024

Disclosure

12/12/2024

Moderation

accepted

CPE

ready

EPSS

0.01139

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!