Infinite loop in OpenCV YAML parser lets crafted files cause denial of service
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-835.
Summary
OpenCV through 4.14.0 and 5.0.0 through 5.1.0 contains an infinite loop in YAMLParser::parse. A local user who supplies a YAML file with a non-separator '-' line after the first document can hang the thread at full CPU when the file is opened through cv::FileStorage, causing denial of service. The flaw is tracked as CWE-835.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
The sources list no fixed version for opencv.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Timeline
- 2026-11-23 Threatist record created from CVE-2026-135290
- 2026-11-23 Alias added: GHSA-h35f-7wcf-2h7h
References
Patch 2
More OpenCV vulnerabilities
- TI-2023-02446 OpenCV wechat_qrcode Module decoded_bit_stream_parser.cpp decodeByteSegment null pointer dereference CVSS 3.1HIGH 7.5
- TI-2018-05558 The validateInputImageSize function in modules/imgcodecs/src/loadsave.cpp in OpenCV 3.4.1… CVSS 3.1HIGH 7.5
- TI-2019-03524 Buffer overflow in OpenCV CVSS 3.1HIGH 8.8
- TI-2019-03525 Buffer overflow in OpenCV CVSS 3.1HIGH 8.8
- TI-2017-14661 In opencv/modules/imgcodecs/src/utils.cpp, functions FillUniColor and FillUniGray do not… CVSS 3.1HIGH 8.8
- TI-2017-09525 In modules/imgcodecs/src/grfmt_pxm.cpp, the length of buffer AutoBuffer _src is small… CVSS 3.1HIGH 8.8
Sources
- CVE-2026-135290 · CVE Program
- CVE-2026-135290 · NVD
- FIRST EPSS
- GHSA-h35f-7wcf-2h7h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences