Vulnerability Description
OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 contains an out-of-bounds read vulnerability in the built-in MJPEG encoder when writing grayscale frames due to incorrect level shifting in convertToYUV(). Attackers controlling pixel content written as grayscale MJPEG video can trigger unchecked cat_table and huff_dc_tab lookups, leaking adjacent or uninitialized memory into the output file or crashing the process.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encod
- https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encod
- https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1
- https://github.com/opencv/opencv/pull/29859
- https://github.com/opencv/opencv/pull/31094
- https://www.vulncheck.com/advisories/opencv-3.0.0-through-4.14.0-and-5.0.0-throu
FAQ
What is CVE-2026-137083?
CVE-2026-137083 is a vulnerability with a CVSS score of 5.3 (MEDIUM). OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 contains an out-of-bounds read vulnerability in the built-in MJPEG encoder when writing grayscale frames due to incorrect level shifting in convertT...
How severe is CVE-2026-137083?
CVE-2026-137083 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-137083?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.