CVE-2026-135290 in OpenCVinfo

Summary

by MITRE • 11/23/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/24/2026

The OpenCV library, specifically versions 4.14.0 and the range from 5.0.0 through 5.1.0, contains a critical infinite loop vulnerability within its YAML parsing component. This flaw resides in the YAMLParser::parse function, which is responsible for interpreting structured data formats commonly used for configuration files and model parameters in computer vision applications. The vulnerability arises when the parser encounters specific malformed input structures that trigger an uncontrolled repetition of internal processing steps without a proper termination condition or exit path.

The technical root cause involves the handling of YAML dash lines during document parsing. Specifically, attackers can craft malicious YAML files containing non-separator characters represented by dashes placed after the first document declaration. When such a file is opened using cv::FileStorage, which serves as the primary interface for reading and writing various data formats in OpenCV, the parser enters an infinite loop while attempting to resolve or validate these malformed entries. This behavior prevents the function from returning control to the calling application, effectively freezing the execution thread associated with that operation.

From a security impact perspective, this vulnerability facilitates a denial of service attack against applications relying on OpenCV for data ingestion. By supplying specially crafted YAML inputs, an attacker can cause the affected process to hang indefinitely while consuming one hundred percent of a single CPU core's resources. This resource exhaustion leads to application unresponsiveness and potential system instability if multiple threads are impacted or if critical services depend on timely completion of these parsing tasks. The attack vector is particularly concerning because it requires only the ability to provide input data, which may occur through file uploads, network requests, or local configuration loading mechanisms depending on how the vulnerable OpenCV version is integrated into a larger software stack.

This vulnerability aligns with CWE-835, known as Loop Without Increasing Progress, where an iterative process fails to advance toward completion due to flawed logic in loop control conditions. Additionally, it maps to MITRE ATT&CK technique T1496, Resource Hijacking, specifically under the sub-category of CPU Consumption, as the exploitation results in excessive utilization of computational resources to degrade service availability rather than compromising data confidentiality or integrity directly.

Mitigation strategies primarily involve upgrading OpenCV to a version beyond 5.1.0 where this parsing logic has been corrected to handle malformed YAML structures gracefully without entering infinite loops. For systems that cannot immediately upgrade, implementing input validation and sanitization layers before passing YAML content to cv::FileStorage can help filter out potentially malicious dash sequences or enforce stricter schema compliance. Additionally, deploying resource monitoring tools to detect abnormal CPU usage patterns associated with parsing operations may provide early warning indicators of such exploitation attempts in production environments.

Responsible

VulnCheck

Reservation

11/23/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00417

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!