CVE-2026-135290: OpenCV through 4.14.0 and 5.0.0 through 5.1.0 Infinite Loop via YAMLParser::parse
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
Frequently Asked Questions
Who is exposed to this issue?
Applications that use cv::FileStorage to open YAML files are exposed when an attacker can influence the YAML content. The impact is a thread hang at full CPU, resulting in denial of service.
What input is required to trigger the hang?
The attacker must supply a crafted YAML file containing a non-separator '-' line after the first document. Exploitation requires a user or application to open that file through cv::FileStorage.
Is user interaction required?
Yes. The provided severity vector indicates user interaction is required, and the crafted YAML must be opened through cv::FileStorage.
Which OpenCV versions are affected?
The affected versions are OpenCV through 4.14.0 and versions 5.0.0 through 5.1.0.