# CVE-2026-135290: OpenCV through 4.14.0 and 5.0.0 through 5.1.0 Infinite Loop via YAMLParser::parse

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-11-23T16:57:48.880Z
- Modified: 2026-11-23T17:17:52.497Z
- Weaknesses: CWE-835
- Assigned by: 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.

(As written by CVE List.)

## Affected

- opencv opencv: up to 4.14.0; from 5.0.0 up to 5.1.0

## Every score

- VulnCheck: CVSS:4.0 6.8 Medium `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`
- VulnCheck: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/opencv/opencv/pull/31041> (issue-tracking, patch)
- <https://github.com/opencv/opencv/commit/ede3313ae7157662b6c038adf758ad409cfedf40> (patch)
- <https://issues.oss-fuzz.com/issues/492921270> (issue-tracking)
- <https://github.com/opencv/opencv/blob/4.14.0/modules/core/src/persistence_yml.cpp#L797-L825> (technical-description)
- <https://github.com/opencv/opencv/blob/5.1.0/modules/core/src/persistence_yml.cpp#L820-L851> (technical-description)
- <https://www.vulncheck.com/advisories/opencv-through-4.14.0-and-5.0.0-through-5.1.0-infinite-loop-via-yamlparser-parse> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-135290](https://www.cve.org/CVERecord?id=CVE-2026-135290), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-135290](https://nvd.nist.gov/vuln/detail/CVE-2026-135290), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-135290 · Whole record: https://cve.day/CVE-2026-135290.json · Rebuilt by cve.day 2026-11-25T22:59:52.675Z
