CVE-2024-58397 MP4v2 through 2.1.3 Heap Out-of-Bounds Read via MP4File::GetChapters

Medium 6.9 Published Updated

Attackers can read adjacent heap memory or crash applications by providing a crafted MP4 file with malformed chapter samples to the MP4v2 library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-58397?

CVE-2024-58397 is a medium-severity vulnerability in enzo1982 mp4v2, published on 15 Oct 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

MP4v2 through 2.1.3 contains a heap-based out-of-bounds read in MP4File::GetChapters() that allows attackers to read past heap allocations via crafted QuickTime chapter samples. Attackers can supply an MP4 file whose chapter sample is shorter than its declared title length, crashing applications like mp4chaps or leaking adjacent heap memory into chapter titles.

Weakness: CWE-125

Which versions are affected by CVE-2024-58397?

How do I fix CVE-2024-58397?

No fix has been published for CVE-2024-58397 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-58397 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-58397 exists.

Sources

Also known as GHSA-rpfq-3w7q-qcrv, UBUNTU-CVE-2024-58397.

Is CVE-2024-58397 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free