JLSEC-2026-2335: OpenCV 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0 contains an out-of-bounds read vulnerability...
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 cattable and huffdctab lookups, leaking adjacent or uninitialized memory into the output file or crashing the process.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What conditions are required for exploitation?
An attacker needs to control pixel content that the application writes as grayscale MJPEG video using OpenCV's built-in MJPEG encoder. Exploitation also requires user interaction according to the supplied vector.
What is the practical impact on an affected application?
Malformed grayscale frame content can cause out-of-bounds table lookups during encoding. This may leak adjacent or uninitialized process memory into the generated video file or crash the process.
Which deployments should be prioritized for triage?
Prioritize applications using julia/opencv_cuda_jll or julia/opencv_jll that encode attacker-influenced grayscale frames to MJPEG. The affected OpenCV version ranges are 3.0.0 through 4.14.0 and 5.0.0 through 5.1.0.