GStreamer ASF Demuxer Heap-based Buffer Overflow Remote Code Execution Vulnerability
The ASF demuxer in GStreamer copies user-supplied data from stream headers into a fixed-length heap buffer without checking its length first. A remote attacker could use a crafted ASF file to execute code in the context of the current process.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit this vulnerability but attack vectors may vary depending on the implementation.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The ASF stream header parser did not validate the length of user-supplied data before copying it into a fixed-length heap buffer.
Impact
An attacker could execute arbitrary code in the context of the current process, though the text notes that interaction with the library is required and that attack vectors may vary by implementation.
What the attacker needed
Crafted ASF file; victim opens the file in an affected app
The fix
GStreamer issued an update to correct the vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A demuxer is the part of a media library that unpacks a container file, such as an ASF video, into its separate streams. Here it trusted a length value written in the file and copied that much data into a buffer of fixed size, so a longer value spills past the end of the buffer. An attacker who gets a victim to open a malicious media file could then run their own code as that program.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.