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...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSopencv |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSopencv |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSopencv |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSopencv |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:22.04:LTSopencv |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSopencv |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10opencv |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSopencv |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by 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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org