# CVE-2026-137083: OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read

- Severity: Medium 5.8 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-11-25T19:32:51.280Z
- Modified: 2026-11-30T22:17:27.520Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- OpenCV OpenCV: from 3.0.0 up to 4.14.0; from 5.0.0 up to 5.1.0

## Every score

- VulnCheck: CVSS:4.0 5.8 Medium `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`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H`

## References

- <https://github.com/opencv/opencv/pull/31094> (issue-tracking, patch)
- <https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1> (patch)
- <https://github.com/opencv/opencv/pull/29859> (issue-tracking, patch)
- <https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140> (technical-description)
- <https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308> (technical-description)
- <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> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-137083](https://www.cve.org/CVERecord?id=CVE-2026-137083), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-137083](https://nvd.nist.gov/vuln/detail/CVE-2026-137083), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-137083 · Whole record: https://cve.day/CVE-2026-137083.json · Rebuilt by cve.day 2026-11-30T22:32:12.612Z
