CVE-2026-137083
published medium CVSS 4.0 · 5.8OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenCV | — | OpenCV3.0.0 through 4.14.0 · 5.0.0 through 5.1.0 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenCV | OpenCV | 3.0.0 through 4.14.0 (affected · semver)5.0.0 through 5.1.0 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-125 Out-of-bounds Read
References
6- https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1140
- https://github.com/opencv/opencv/blob/4.14.0/modules/videoio/src/cap_mjpeg_encoder.cpp#L1308
- https://github.com/opencv/opencv/commit/a85f8a0de94a0fbdb7d7fef51cb5132299cf35d1
- https://github.com/opencv/opencv/pull/29859
- https://github.com/opencv/opencv/pull/31094
- VulnCheck Advisory: OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read 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
Provider assertions
2VulnCheck · cna
OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 MJPEG Encoder Out-of-Bounds Read
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 298be06c5213e43999f166f0b1aa3033490f409bd9e8526f55109dd0d01cc342
- Ingested
- 30 Nov 2026, 21:17:56 UTC
- Source record
- Official CVE record