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

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T21:43:16.269Z
- Modified: 2026-10-27T19:10:00.123Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- enzo1982 mp4v2: up to 2.1.3

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`

## References

- <https://hackmd.io/@haind-pwn/cve-2024-58397-mp4v2-getchapters-oob-read> (exploit)
- <https://hackmd.io/@haind-pwn/mp4v2-getchapters-oob-read> (technical-description)
- <https://github.com/enzo1982/mp4v2/issues/53> (issue-tracking)
- <https://github.com/enzo1982/mp4v2/blob/f4c2f1b87446100728472d80fd1161d2f8e830b2/src/mp4file.cpp#L2618-L2627> (technical-description)
- <https://github.com/enzo1982/mp4v2> (product)
- <https://www.vulncheck.com/advisories/mp4v2-through-2.1.3-heap-out-of-bounds-read-via-mp4file-getchapters> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-58397](https://www.cve.org/CVERecord?id=CVE-2024-58397), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2024-58397](https://nvd.nist.gov/vuln/detail/CVE-2024-58397), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2024-58397 · Whole record: https://cve.day/CVE-2024-58397.json · Rebuilt by cve.day 2026-11-25T22:58:53.080Z
