Skip to content
Memory corruption Advisory Advanced CVE-2024-47597

GHSL-2024-245: OOB-read in qtdemux_parse_samples in GStreamer - CVE-2024-47597

An out-of-bounds read was found in GStreamer's qtdemux_parse_samples function when parsing a crafted MP4 file. An attacker could cause a read of up to 8 bytes beyond the stream->stco buffer.

antonio-morales Follow

Originally disclosed on GitHub Security Lab

An OOB-read has been detected in the function qtdemuxparsesamples within qtdemux.c.

antonio-morales, on GitHub Security Lab

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

Likely the code uses an unchecked offset parser that does not verify the offset is within the stream->stco buffer before reading.

What the attacker needed

Crafted MP4 file; victim opens the file

The fix

The issue was fixed and disclosed by the GStreamer project.

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 media player library reads a file's index of sample locations. If the file is malformed, the library can read a little past the end of a buffer, which is an out-of-bounds read. This can crash the program or leak a small amount of memory.

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.

More by antonio-morales

View all

45 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.