MediaArea MediaInfoLib ID3v2 parsing heap-based buffer overflow vulnerability
A heap-based buffer overflow exists in MediaInfoLib's ID3v2 parsing when handling unsynchronisation, allowing an attacker to control both the allocation size and the memcpy length. A crafted media file can trigger the overflow and potentially lead to arbitrary code execution.
Originally disclosed on Cisco Talos
A heap-based buffer overflow vulnerability exists in the ID3v2 parsing functionality of MediaInfoLib (version(s): 26.01). A specially crafted media file that contains ID3v2 tags can lead to arbitrary code execution.
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 code allocates a buffer based on an attacker-controlled length from the file but then copies data using sizes derived from unsynchronisation pattern indices without checking that the copy fits within the allocation.
Impact
A crafted file could cause a heap buffer overflow, potentially overwriting pointers and leading to arbitrary code execution.
What the attacker needed
Victim opens a malicious media file
The fix
The vendor released a patch, but the text does not describe the fix details.
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.
MediaInfoLib reads metadata tags from media files. A bug in how it handles a special tag format lets a malicious file cause the program to write more data than it reserved in memory, which can crash it or let an attacker run their own code.
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.