CVE-2026-137083
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Affected 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | opencv |
Affected | — |
| sid | opencv |
Affected | — |
| forky | opencv |
Affected | — |
| bookworm | opencv |
Affected | — |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
References
- 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://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1
- https://github.com/opencv/opencv/pull/29859
- https://github.com/opencv/opencv/pull/31094
- 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://www.suse.com/security/cve/CVE-2026-137083.html
- https://security-tracker.debian.org/tracker/CVE-2026-137083
CWEs
CWE-125
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.