# 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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-25 · Modified: 2026-11-30
- Aliases: UBUNTU-CVE-2026-137083, DEBIAN-CVE-2026-137083, CGA-2qrm-j7gj-fmjq, CGA-6f68-8xjp-2p2j, CGA-42wm-f32p-8qgv, CGA-3g7q-44ff-68fj
- Record: https://cvemate.com/vulnerability/CVE-2026-137083 · JSON: https://cvemate.com/vulnerability/CVE-2026-137083/json

## Description

```text
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.
```

## Signals

- CVSS: 5.8 medium (v4.0, CVE.org) 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
- EPSS: 0.214%, percentile 12.468%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard opencv (Chainguard): All versions (No fix recorded)
- chainguard opencv-dev (Chainguard): All versions (No fix recorded)
- chainguard opencv-libs (Chainguard): All versions (No fix recorded)
- wolfi opencv (Wolfi): All versions (No fix recorded)
- debian opencv (Debian): All versions (No fix recorded)
- ubuntu opencv (Ubuntu): All versions (No fix recorded)
- opencv opencv: ≥ 3.0.0, ≤ 4.14.0 \| ≥ 5.0.0, ≤ 5.1.0

## 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>
- <https://ubuntu.com/security/CVE-2026-137083>
- <https://www.cve.org/CVERecord?id=CVE-2026-137083>
- <https://security-tracker.debian.org/tracker/CVE-2026-137083>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137083.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-137083>
- <https://github.com/opencv/opencv>

---

Data as of 2026-12-05T06:40:40.644Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
