JLSEC-2026-2334: OpenCV through 4.14.0 and 5.0.0 through 5.1.0 contains an infinite loop vulnerability in...
OpenCV through 4.14.0 and 5.0.0 through 5.1.0 contains an infinite loop vulnerability in YAMLParser::parse that allows attackers to cause denial of service via crafted YAML dash lines. Attackers can supply YAML files with a non-separator '-' line after the first document, opened through cv::FileStorage, to hang the thread at full CPU.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What conditions are required to trigger the denial of service?
An attacker must be able to provide a crafted YAML file that the application opens through cv::FileStorage. The YAML must contain a non-separator '-' line after the first document, which causes YAMLParser::parse to loop and consume a CPU at full utilization.
Who is exposed in a Julia deployment?
Deployments using julia/opencv_cuda_jll or julia/opencv_jll are exposed when they process YAML input that can be influenced by an attacker. Exploitation requires user interaction in the form of opening or otherwise loading the crafted YAML through cv::FileStorage.
What can be done if an update is not immediately available?
Do not open untrusted YAML files through cv::FileStorage. Restrict YAML inputs to trusted sources and validate or reject files containing unexpected dash-prefixed lines after the first document before passing them to OpenCV.