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.
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Received"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137083",
"id": "CVE-2026-137083",
"imported": "2026-12-03T08:02:39.527Z",
"modified": "2026-11-30T22:17:27.520Z",
"published": "2026-11-25T20:18:45.100Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-137083"
},
{
"html_url": "https://github.com/advisories/GHSA-qc46-3cj7-2qc9",
"id": "GHSA-qc46-3cj7-2qc9",
"imported": "2026-12-03T08:02:49.649Z",
"modified": "2026-11-25T21:30:40Z",
"published": "2026-11-25T21:30:39Z",
"url": "https://api.github.com/advisories/GHSA-qc46-3cj7-2qc9"
},
{
"affected": {
"OpenCV:opencv": [
"3.0.0 ≤4.14.0",
"5.0.0 ≤5.1.0"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-135763",
"id": "EUVD-2026-135763",
"imported": "2026-12-03T08:02:36.444Z",
"modified": "2026-11-30T21:07:05Z",
"published": "2026-11-25T19:32:51Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-135763"
}
]
}