Arbitrary code execution via oversized memory-stream copy
Published Apr 2, 2024 · Updated Mar 25, 2025
Heap buffer overflow in Bento4 1.6.0-641 allows remote attackers to execute arbitrary code through a crafted media file processed by mp42aac. AP4_MemoryByteStream::WritePartial passes a crafted 32-bit length to memcpy, causing a 4,294,967,280-byte write beyond a 1,056-byte heap buffer. Exploitation requires the target to process the malicious file with mp42aac; the published proof demonstrates an AddressSanitizer abort, while the CVE record attributes arbitrary code execution.
Summary
What happened
Heap buffer overflow in Bento4 1.6.0-641 allows remote attackers to execute arbitrary code through a crafted media file processed by mp42aac. AP4_MemoryByteStream::WritePartial passes a crafted 32-bit length to memcpy, causing a 4,294,967,280-byte write beyond a 1,056-byte heap buffer. Exploitation requires the target to process the malicious file with mp42aac; the published proof demonstrates an AddressSanitizer abort, while the CVE record attributes arbitrary code execution.
The record
- CVE
- CVE-2024-31003
- Published
- Apr 2, 2024
- Updated
- Mar 25, 2025
- Vendor
- Axiomatic Systems LLC
- Product
- Bento4
- Classifications
- CWE-94, T1203
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 2, 2024CVE publishedPublication date reported by the CVE source.
- Mar 25, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1.6.0-641
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- poc.zip and poc1.zip crash inputsproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo