Medium severity5.3NVD Advisory· Published Nov 25, 2026
CVE-2026-137083
CVE-2026-137083
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.
Affected products
1Patches
Vulnerability mechanics
References
6- github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cppnvd
- github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cppnvd
- github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1nvd
- github.com/opencv/opencv/pull/29859nvd
- github.com/opencv/opencv/pull/31094nvd
- www.vulncheck.com/advisories/opencv-3.0.0-through-4.14.0-and-5.0.0-through-5.1.0-mjpeg-encoder-out-of-bounds-readnvd
News mentions
0No linked articles in our index yet.