{"id":"CVE-2026-137083","aliases":[],"title":"OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read","originalDescription":"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.","severity":{"cvss":5.8,"vector":"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","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00214,"percentile":0.06712},"exploitDb":null},"affected":[],"references":[{"url":"https://github.com/opencv/opencv/pull/31094","type":"issue-tracking"},{"url":"https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1","type":"patch"},{"url":"https://github.com/opencv/opencv/pull/29859","type":"issue-tracking"},{"url":"https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140","type":"technical-description"},{"url":"https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308","type":"technical-description"},{"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","type":"third-party-advisory"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137083.json","type":"advisory"},{"url":"https://github.com/opencv/opencv","type":"package"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137083","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-25T20:25:28.956Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137083","license":"NVD terms of use","firstSeenAt":"2026-11-25T20:25:28.956Z"},{"name":"osv","at":"2026-11-26T21:45:22.570Z","url":"https://osv.dev/vulnerability/CVE-2026-137083","license":"CC-BY 4.0","firstSeenAt":"2026-11-25T21:33:10.117Z"},{"name":"cvelistV5","at":"2026-11-28T22:07:53.249Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-137083","license":"CVE Terms of Use","firstSeenAt":"2026-11-25T19:49:55.594Z"}],"firstSeenAt":"2026-11-25T19:49:55.594Z","publishedAt":"2026-11-25T19:32:51.280Z","modifiedAt":"2026-11-26T21:02:17.819Z"}