{"id":"CVE-2026-137083","summary":"OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read","details":"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.","modified":"2026-11-25T21:02:21.603888226Z","published":"2026-11-25T19:32:51.280Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137083.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-125"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137083.json"},{"type":"PACKAGE","url":"https://github.com/opencv/opencv"},{"type":"ARTICLE","url":"https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140"},{"type":"ARTICLE","url":"https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308"},{"type":"FIX","url":"https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1"},{"type":"FIX","url":"https://github.com/opencv/opencv/pull/29859"},{"type":"FIX","url":"https://github.com/opencv/opencv/pull/31094"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137083"},{"type":"ADVISORY","url":"https://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-read"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opencv/opencv","events":[{"introduced":"c12243cf4fccf5df7b0270a32883986b373dca7b"},{"last_affected":"0654a42e19215ef25b1d367d822f3c630447e7c7"},{"introduced":"40738fb16ceddb5fb3fea747585f7ce6abb0605b"},{"last_affected":"e4f78fbcf1a773fbed69e14500e8b734963eb585"},{"fixed":"a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"3.0.0"},{"last_affected":"4.14.0"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"5.0.0"},{"last_affected":"5.1.0"}]},{"range":[{"fixed":"a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1"}],"source":"REFERENCES_COMMIT"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-137083.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"}]}