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
Source GCVE Database
Not known to be exploited · CVSS 5.8 Medium.
Data as of 25 Nov 2026, 21:55 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.8 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.3 |
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| OpenCVOpenCV | Affected
| Fixed in– |
GitHubOpenCVpkg:github/OpenCVOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is released, avoid processing untrusted grayscale MJPEG video frames with affected OpenCV versions to mitigate risk.
Description
OpenCV versions 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 have an out-of-bounds read vulnerability in the built-in MJPEG encoder when processing grayscale frames. This occurs due to incorrect level shifting in the convertToYUV() function, which can cause unchecked lookups in cat_table and huff_dc_tab. Exploitation can lead to leaking adjacent or uninitialized memory into the output file or cause the process to crash.
References
- nvd.nist.gov/vuln/detail/CVE-2026-137083 (opens in a new tab)
- github.com/opencv/opencv/pull/29859 (opens in a new tab)
- github.com/opencv/opencv/pull/31094 (opens in a new tab)
- github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1 (opens in a new tab)
- github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp (opens in a new tab)
- github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp (opens in a new tab)
- 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 (opens in a new tab)