CVE-2026-137083
NVD
Vulnerability Summary
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.
CVSS v4.0 Base Metrics — Score 5.8 (MEDIUM)
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:NAttack VectorLocal
Attack ComplexityHigh
Attack RequirementsPresent
Privileges RequiredNone
User InteractionPassive
Confidentiality (Vulnerable System)Low
Integrity (Vulnerable System)None
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 5.3)
CVSS v3.1 Base Metrics — Score 5.3 (MEDIUM)
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:HAttack VectorLocal
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityHigh
Affected & Patched Versions
- OpenCV >= 3.0.0 and <= 4.14.0
- OpenCV >= 5.0.0 and <= 5.1.0
- OpenCV 4.14.0
- OpenCV 5.1.0
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run OpenCV and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 25, 2026Published
- Nov 25, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new OpenCV CVEsYou are reading CVE-2026-137083. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Patchhttps://github.com/opencv/opencv/pull/31094
- Patchhttps://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1
- Patchhttps://github.com/opencv/opencv/pull/29859
- Referencehttps://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140
- Referencehttps://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308
- Referencehttps://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
Data last checked: Nov 30, 2026 04:06 UTC