CVE-2026-135290
published medium CVSS 4.0 · 6.8OpenCV through 4.14.0 and 5.0.0 through 5.1.0 Infinite Loop via YAMLParser::parse
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| opencv | — | opencv0 through 4.14.0 · 5.0.0 through 5.1.0 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| opencv | opencv | 0 through 4.14.0 (affected · semver)5.0.0 through 5.1.0 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
References
6- https://github.com/opencv/opencv/blob/4.14.0/modules/core/src/persistence_yml.cpp#L797-L825
- https://github.com/opencv/opencv/blob/5.1.0/modules/core/src/persistence_yml.cpp#L820-L851
- https://github.com/opencv/opencv/commit/ede3313ae7157662b6c038adf758ad409cfedf40
- https://github.com/opencv/opencv/pull/31041
- https://issues.oss-fuzz.com/issues/492921270
- VulnCheck Advisory: OpenCV through 4.14.0 and 5.0.0 through 5.1.0 Infinite Loop via YAMLParser::parse https://www.vulncheck.com/advisories/opencv-through-4.14.0-and-5.0.0-through-5.1.0-infinite-loop-via-yamlparser-parse
Provider assertions
1VulnCheck · cna
OpenCV through 4.14.0 and 5.0.0 through 5.1.0 Infinite Loop via YAMLParser::parse
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 30b5ca44da555230a740d32f62562b7fcd13350980127550c86ee19f1ddae982
- Ingested
- 23 Nov 2026, 17:01:40 UTC
- Source record
- Official CVE record