{"id":"CVE-2026-137083","state":"PUBLISHED","title":"OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read","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.","publishedAt":"2026-11-25T19:32:51.280Z","updatedAt":"2026-11-25T19:32:51.280Z","severity":{"score":5.8,"label":"Medium","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["OpenCV OpenCV"],"affected":[{"vendor":"OpenCV","product":"OpenCV","packageURL":"pkg:github/opencv/opencv","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThanOrEqual":"4.14.0","versionType":"semver"},{"version":"5.0.0","status":"affected","lessThanOrEqual":"5.1.0","versionType":"semver"}],"repo":"https://github.com/opencv/opencv"}],"references":["https://github.com/opencv/opencv/pull/31094","https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1","https://github.com/opencv/opencv/pull/29859","https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140","https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308","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"],"weaknesses":["CWE-125"],"ingestedAt":"2026-11-25T19:40:05.749Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/137xxx/CVE-2026-137083.json","commit":"7fb2fe68b486b39133abf360e3484bf7fdddf2e4","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-137083","state":"PUBLISHED","datePublished":"2026-11-25T19:32:51.280Z","dateUpdated":"2026-11-25T19:32:51.280Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-25T17:56:26.506Z"},"containers":{"cna":{"title":"OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read","descriptions":[{"lang":"en","value":"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":[{"vendor":"OpenCV","product":"OpenCV","packageURL":"pkg:github/opencv/opencv","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThanOrEqual":"4.14.0","versionType":"semver"},{"version":"5.0.0","status":"affected","lessThanOrEqual":"5.1.0","versionType":"semver"}],"repo":"https://github.com/opencv/opencv"}],"references":[{"url":"https://github.com/opencv/opencv/pull/31094","tags":["issue-tracking","patch"]},{"url":"https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1","tags":["patch"]},{"url":"https://github.com/opencv/opencv/pull/29859","tags":["issue-tracking","patch"]},{"url":"https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140","tags":["technical-description"]},{"url":"https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308","tags":["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","name":"VulnCheck Advisory: OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":5.8,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","description":"Out-of-bounds Read","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-25T19:32:51.280Z"},"datePublic":"2026-11-11T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndIncluding":"4.14.0"},{"vulnerable":true,"criteria":"cpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0.0","versionEndIncluding":"5.1.0"}]}]}],"credits":[{"lang":"en","value":"Savya Sanchi Sharma (SavyaSanchi-Sharma)","type":"finder"},{"lang":"en","value":"Madan mohan Manokar (madanm3)","type":"finder"},{"lang":"en","value":"Pu Cheng","type":"analyst"},{"lang":"en","value":"Pu Cheng","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}