GStreamer JPEG Parser Heap-based Buffer Overflow Remote Code Execution Vulnerability
The GStreamer JPEG parser fails to validate the length of user-supplied data when processing Huffman tables, copying it into a fixed-length heap buffer. A remote attacker could exploit this to execute arbitrary 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
Impact
A remote attacker could execute arbitrary code in the context of the current process, though some form of interaction with the library is required and the attack vector depends on the implementation.
What the attacker needed
Crafted JPEG input; victim processes the file with GStreamer
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 program that reads JPEG images keeps a small fixed-size area of memory for certain data tables. If a crafted image supplies more data than that area can hold, the extra bytes spill over into neighbouring memory. An attacker can shape that overflow to run their own code as the 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.