Out-of-Bounds Read Vulnerability in OpenCV MJPEG Encoder
CVE-2026-137083
5.8MEDIUM
What is CVE-2026-137083?
The OpenCV MJPEG encoder versions 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 are affected by an out-of-bounds read vulnerability. This flaw arises from improper level shifting within the convertToYUV() function, which handles grayscale frames. Attackers can exploit this vulnerability by controlling the pixel content of grayscale MJPEG video, leading to potential memory leaks where adjacent or uninitialized memory may be exposed in the output file, thereby raising serious security concerns and potentially crashing the process.
Affected Version(s)
OpenCV 3.0.0 <= 4.14.0
OpenCV 5.0.0 <= 5.1.0
References
CVSS V4
Score:
5.8
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
High
Attack Vector:
Local
Attack Complexity:
High
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Savya Sanchi Sharma (SavyaSanchi-Sharma)
Madan mohan Manokar (madanm3)
Pu Cheng
Pu Cheng
