OpenCV MJPEG Encoder Out-of-Bounds Read in Grayscale Frame Writing
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · High
- Fix status
- Deferred Red Hat: fix deferred
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.
Summary
OpenCV versions 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 contain an out-of-bounds read (CWE-125) in the built-in MJPEG encoder when it writes grayscale frames. Incorrect level shifting in convertToYUV() leads to unchecked lookups in cat_table and huff_dc_tab, so an attacker who controls pixel content in a grayscale MJPEG video can leak adjacent or uninitialized memory into the output file or crash the process. The CNA rates it CVSS 4.0 5.8 (MEDIUM). CISA has not added it to KEV, and no exploit link is listed in the references.
Written with Claude Haiku 5.5 from the sources below · 2026-11-28
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fix is listed for OpenCV in the affected ranges 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0. Red Hat rates the issue Moderate and lists no available plan for Red Hat Enterprise Linux 8. Until a fixed release is available, avoid encoding grayscale frames with the MJPEG encoder from untrusted input.
Written with Claude Haiku 5.5 from the sources below · 2026-11-28
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
Not affected: 2 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Timeline
- 2026-11-25 Threatist record created from CVE-2026-137083
- 2026-11-25 Alias added: GHSA-qc46-3cj7-2qc9
- 2026-11-28 Affected versions changed · Red Hat
- 2026-11-28 CVSS score added · Red Hat
- 2026-11-30 CISA SSVC decision points changed
References
Patch 3
More OpenCV vulnerabilities
- TI-2023-02446 OpenCV wechat_qrcode Module decoded_bit_stream_parser.cpp decodeByteSegment null pointer dereference CVSS 3.1HIGH 7.5
- TI-2018-05558 The validateInputImageSize function in modules/imgcodecs/src/loadsave.cpp in OpenCV 3.4.1… CVSS 3.1HIGH 7.5
- TI-2019-03524 Buffer overflow in OpenCV CVSS 3.1HIGH 8.8
- TI-2019-03525 Buffer overflow in OpenCV CVSS 3.1HIGH 8.8
- TI-2017-14661 In opencv/modules/imgcodecs/src/utils.cpp, functions FillUniColor and FillUniGray do not… CVSS 3.1HIGH 8.8
- TI-2017-09525 In modules/imgcodecs/src/grfmt_pxm.cpp, the length of buffer AutoBuffer _src is small… CVSS 3.1HIGH 8.8
Sources
- CVE-2026-137083 · CVE Program
- CVE-2026-137083 · NVD
- FIRST EPSS
- GHSA-qc46-3cj7-2qc9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-137083 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences