Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-135290: medium-severity vulnerability (CVSS 6.8) in opencv opencv.
What happened
Original description from the source: 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
Medium severity, CVSS 6.8.
Affected products and versions
opencv opencv <= 4.14.0; opencv opencv >= 5.0.0, <= 5.1.0
| Product | Versions | Fixed in |
|---|---|---|
| opencv opencv | <= 4.14.0 | — |
| opencv opencv | >= 5.0.0, <= 5.1.0 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/opencv/opencv/pull/31041 — CVE Program
- https://github.com/opencv/opencv/commit/ede3313ae7157662b6c038adf758ad409cfedf40 — CVE Program
- https://issues.oss-fuzz.com/issues/492921270 — CVE Program
- https://github.com/opencv/opencv/blob/4.14.0/modules/core/src/persistence_yml.cpp#L797-L825 — CVE Program
- https://github.com/opencv/opencv/blob/5.1.0/modules/core/src/persistence_yml.cpp#L820-L851 — CVE Program
- https://www.vulncheck.com/advisories/opencv-through-4.14.0-and-5.0.0-through-5.1.0-infinite-loop-via-yamlparser-parse — CVE Program
Weaknesses (CWE): CWE-835
Relevant change history
Published
Preliminary advisory published.