Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.8CVE-2026-137083

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

OpenCV OpenCV

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-137083: medium-severity vulnerability (CVSS 5.8) in OpenCV OpenCV.

What happened

Original description from the source: 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

Medium severity, CVSS 5.8.

Affected products and versions

OpenCV OpenCV >= 3.0.0, <= 4.14.0; OpenCV OpenCV >= 5.0.0, <= 5.1.0

ProductVersionsFixed in
OpenCV OpenCV>= 3.0.0, <= 4.14.0—
OpenCV OpenCV>= 5.0.0, <= 5.1.0—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-125

Relevant change history

  1. Published

    Preliminary advisory published.