Skip to content
Memory corruption Advisory Advanced CVE-2026-28764

MediaArea MediaInfoLib LXF element parsing heap-based buffer overflow vulnerability

A typographic error in the LXF header parsing causes an infinite loop that increments an element level counter without bounds checking, leading to a heap-based buffer overflow. An attacker could exploit this to achieve arbitrary code execution by crafting a malicious .lxf file.

Dimitrios Tatsis Follow

Originally disclosed on Cisco Talos

High 7.8 View original

A heap-based buffer overflow vulnerability exists in the LXF element parsing functionality of MediaInfoLib (version(s): 26.01). A specially crafted .lxf file can lead to arbitrary code execution.

Dimitrios Tatsis, on Cisco Talos

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 a typographic error where the code compares against 'HeaderSize' but subtracts 'Header_Size' (which is zero), causing an infinite loop that increments 'Element_Level' without bounds checking, leading to a heap buffer overflow.

Impact

An attacker could achieve arbitrary code execution by controlling the memory layout to create a fake object, leading to an arbitrary free scenario.

What the attacker needed

Victim opens a malicious .lxf file

The fix

The vendor released a patch on 2026-05-12.

How it was found

  1. Craft a .lxf file with a header size larger than the current element offset.
  2. Open the file with MediaInfoLib, triggering the LXF parser.
  3. The parser enters an infinite loop because Buffer_Offset never advances.
  4. Each loop iteration increments Element_Level without bounds checking.
  5. When Element_Level reaches 64, the code writes beyond the Element vector, causing a heap buffer overflow.

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 is a library that reads metadata from media files. A bug in how it parses a particular file format (LXF) causes it to get stuck in a loop that keeps writing past the end of an array in memory. This can crash the program or, in the worst case, 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.

More by Dimitrios Tatsis

View all

21 more disclosed reports, best first.

More from Cisco Talos

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.