OpenCV through 4.14.0 and 5.0.0 through 5.1.0 contains an infinite loop vulnerability in YAMLParser::parse that allows
Source GCVE Database
Not known to be exploited · CVSS 6.8 Medium.
Data as of 23 Nov 2026, 19:41 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 6.8 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.5 |
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 23 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| opencvopencv | Affected
| Fixed in– |
GitHubopencvpkg:github/opencvOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, avoid processing untrusted YAML files with OpenCV's cv::FileStorage to mitigate risk.
Description
OpenCV versions through 4.14.0 and 5.0.0 through 5.1.0 contain an infinite loop vulnerability in the YAMLParser::parse function. This flaw allows attackers to cause a denial of service by supplying specially crafted YAML files with a non-separator '-' line after the first document, which causes the parsing thread to hang at full CPU utilization.
References
- nvd.nist.gov/vuln/detail/CVE-2026-135290 (opens in a new tab)
- github.com/opencv/opencv/pull/31041 (opens in a new tab)
- github.com/opencv/opencv/commit/ede3313ae7157662b6c038adf758ad409cfedf40 (opens in a new tab)
- github.com/opencv/opencv/blob/4.14.0/modules/core/src/persistence_yml.cpp (opens in a new tab)
- github.com/opencv/opencv/blob/5.1.0/modules/core/src/persistence_yml.cpp (opens in a new tab)
- issues.oss-fuzz.com/issues/492921270 (opens in a new tab)
- vulncheck.com/advisories/opencv-through-4.14.0-and-5.0.0-through-5.1.0-infinite-loop-via-yamlparser-parse (opens in a new tab)