# 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

- **Severity:** MEDIUM 5.8
- **CVSS:** 5.8 (v4.0, CNA) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: Low; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 7, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2026-11-25T19:32:51.280Z
- **Modified:** 2026-11-25T20:18:45.100Z

## Who should check

- Anyone running OpenCV \>= 3.0.0, \<= 4.14.0; \>= 5.0.0, \<= 5.1.0

## 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.

## Affected and fixed versions

- OpenCV: \>= 3.0.0, \<= 4.14.0; \>= 5.0.0, \<= 5.1.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-137083. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-137083.md
Affected: OpenCV >= 3.0.0, <= 4.14.0; >= 5.0.0, <= 5.1.0
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for OpenCV: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-137083 being exploited?

There is no confirmed exploitation: CVE-2026-137083 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-137083?

Medium: CVSS 5.8 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-137083?

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

### Is there a fix for CVE-2026-137083?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-137083?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/opencv/opencv/pull/31094>
- patch: <https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1>
- patch: <https://github.com/opencv/opencv/pull/29859>
- article: <https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140>
- article: <https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308>
- other: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-137083>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-137083> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-137083>
