CVE-2024-58397 Details
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.
A heap-based out-of-bounds read vulnerability has been identified in the MP4v2 library, specifically in versions through 2.1.3. The issue arises in the `MP4File::GetChapters()` function while processing QuickTime chapter samples. Attackers can exploit this vulnerability by crafting an MP4 file with a chapter sample that has a declared title length exceeding the actual sample size. This exploitation leads to a read operation that extends beyond the allocated heap memory, causing applications to crash or to leak adjacent heap data into the chapter titles.
To address this vulnerability, the `MP4File::GetChapters()` function should be modified to include proper checks on the chapter sample length before processing. Specifically, the title length should be clamped to the actual size of the sample, and samples that are too short to contain the required length prefix should be handled appropriately.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 15, 2026CISA-ADP
Assessed Oct 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://hackmd.io/@haind-pwn/cve-2024-58397-mp4v2-getchapters-oob-read | CISA-ADP | |
| https://github.com/enzo1982/mp4v2 | [email protected] | ProductSource CodeVendor |
| https://github.com/enzo1982/mp4v2/blob/f4c2f1b87446100728472d80fd1161d2f8e830b2/src/mp4file.cpp#L2618-L2627 | [email protected] | Source CodeVendor |
| https://github.com/enzo1982/mp4v2/issues/53 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://hackmd.io/@haind-pwn/mp4v2-getchapters-oob-read | [email protected] | ExploitTechnical Analysis |
| https://www.vulncheck.com/advisories/mp4v2-through-2.1.3-heap-out-of-bounds-read-via-mp4file-getchapters | [email protected] | AdvisoryBundle |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mp4v2 | <= 2.1.3 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 27, 2026 | CVE Translated | [email protected] |
| Oct 16, 2026 | CVE Modified | CISA-ADP |
| Oct 15, 2026 | New CVE Received | [email protected] |
Volerion