๐Ÿ” CVE Alert

CVE-2026-137083

MEDIUM 5.3

OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read

CVSS Score
5.3
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-125
Vendor opencv
Product opencv
Published Nov 25, 2026
Stay Ahead of the Next One

Get instant alerts for opencv opencv

Be the first to know when new medium vulnerabilities affecting opencv opencv are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H
Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High

Affected Versions

OpenCV / OpenCV
3.0.0 โ‰ค 4.14.0 5.0.0 โ‰ค 5.1.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/opencv/opencv/pull/31094 github.com: https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1 github.com: https://github.com/opencv/opencv/pull/29859 github.com: https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140 github.com: https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308 vulncheck.com: 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

Credits

Savya Sanchi Sharma (SavyaSanchi-Sharma) Madan mohan Manokar (madanm3) Pu Cheng Pu Cheng