CVE-2022-3974
High · 8.8CVSS
8.8
EPSS
0.8%
Published
Nov 13, 2022
CISA due date
—
Cloudanix analysis
A bug in video-file handling software can let attackers take over a computer simply by getting it to open a specially made video file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Memory Corruption
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
Heap-based buffer overflow in AP4_StdcFileByteStream::ReadPartial within Ap4StdCFileByteStream.cpp of the mp4info component, triggered by malformed input during remote file stream processing.
Why it matters to the business
Attackers can remotely crash the application or execute arbitrary code on systems processing untrusted MP4 files, risking data exposure, system compromise, and operational disruption across media workflows that depend on this library.
How an attack unfolds
An attacker crafts a malicious MP4 file that triggers the buffer overflow in the ReadPartial function when parsed by mp4info; because a public exploit exists, the file can be delivered remotely via download or upload and processed by any vulnerable Bento4 installation to achieve code execution.
How to fix it
Upgrade to the latest available version of Bento4 once a fix is released; in the interim, avoid processing untrusted MP4 files with mp4info and consider sandboxing or replacing the component with an alternative library.
How to confirm the fix worked
Rebuild and test with the latest Bento4 source; confirm the vulnerable ReadPartial implementation is no longer present by inspecting Ap4StdCFileByteStream.cpp and exercising mp4info against known malformed test cases.
Typical attack path
- Craft a specially malformed MP4 file that overflows the heap buffer in AP4_StdcFileByteStream::ReadPartial
- Deliver the file to the target system through web download, email attachment, or file upload
- Victim or automated process invokes mp4info on the file
- Overflow occurs during ReadPartial, enabling control of execution flow
- Attacker payload executes, establishing remote access or crashing the process
How to detect it
Search application and system logs for unexpected crashes or abnormal memory usage when mp4info processes MP4 files; examine file-upload and download logs for MP4 files received after the public exploit disclosure date.
What your security team should do
- Immediately restrict use of mp4info on untrusted inputs and monitor for public exploit usage
- Track upstream Bento4 commits for a buffer-overflow fix and schedule rapid deployment
- Add MP4 file validation or sandboxing around any Bento4-dependent pipelines
- Review and inventory all internal and third-party uses of the affected library
The record
A vulnerability classified as critical was found in Axiomatic Bento4. Affected by this vulnerability is the function AP4_StdcFileByteStream::ReadPartial of the file Ap4StdCFileByteStream.cpp of the component mp4info. The manipulation leads to heap-based buffer overflow. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The identifier VDB-213553 was assigned to this vulnerability.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:22.04:LTS | kodi-inputstream-adaptive | 0 | No fix |
| Ubuntu:24.04:LTS | kodi-inputstream-adaptive | 0 | No fix |
| Ubuntu:24.10 | kodi-inputstream-adaptive | 0 | No fix |
| Ubuntu:25.04 | kodi-inputstream-adaptive | 0 | No fix |
| Ubuntu:25.10 | kodi-inputstream-adaptive | 0 | No fix |
Related vulnerabilities
- CVE-2022-3807 A vulnerability was found in Axiomatic Bento4. Also affects kodi-inputstream-adaptive
- CVE-2022-40884 Bento4 1.6.0 has memory leaks via the mp4fragment. Also affects kodi-inputstream-adaptive
- CVE-2022-31282 Bento4 MP4Dump v1.2 was discovered to contain a segmentation violation via an unknown… Also affects kodi-inputstream-adaptive
- CVE-2022-31287 An issue was discovered in Bento4 v1.2. Also affects kodi-inputstream-adaptive
- CVE-2022-31285 An issue was discovered in Bento4 1.2. Also affects kodi-inputstream-adaptive
- CVE-2022-29017 Bento4 v1.6.0.0 was discovered to contain a segmentation fault via the component… Also affects kodi-inputstream-adaptive
- CVE-2026-111497 A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli… CWE-787
- CVE-2026-112397 Pillow is a Python imaging library. CWE-787