OpenCV through 4.14.0 and 5.0.0 through 5.1.0 Infinite Loop via YAMLParser::parse

State
Published
Severity
6.8 Medium
Published
Nov 23, 2026
Updated
Nov 23, 2026
Reserved
Nov 23, 2026

Read the record on cve.org

Description

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.

ProductVersions
opencv opencv4.14.0 and earlier Affected5.0.0 through 5.1.0 Affected

Weaknesses

  • CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.