Read the docs

Infinite loop in OpenCV YAML parser lets crafted files cause denial of service

Priority LOW 30CWE-835Published · Updated

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

EPSS 0.00417 27th percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
OpenCVopencvup to 4.14.0; 5.0.0 – 5.1.0—No fix listedCNA
  • opencv VendorOpenCV Affected up to 4.14.0; 5.0.0 – 5.1.0 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for opencv.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

Timeline

  1. 2026-11-23 Threatist record created from CVE-2026-135290
  2. 2026-11-23 Alias added: GHSA-h35f-7wcf-2h7h

References

  • 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
See all 36 →

Sources