Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious YAML with stray '-' line after first document
-
DeliveryDeliver file via upload or shared path
-
ExploitApplication parses it via cv::FileStorage
-
ExecutionYAMLParser::parse enters infinite loop
-
ImpactThread hangs at full CPU, denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that an application call cv::FileStorage to parse a YAML document the attacker controls - specifically a multi-document YAML stream whose content, after the first document, contains a line beginning with '-' that is not the '---' document separator (the fix's test uses '%YAML:1.0\n---\na: 1\n...\n- 2\n'). The decisive limiting factors are: the victim application must actually ingest untrusted YAML through FileStorage (many OpenCV uses parse only trusted, developer-supplied config/model files), and per the vendor CVSS the attack is local with passive user interaction (UI:P), i.e. a user or process must open the crafted file. Impact is limited to denial of service (thread hang at full CPU); there is no confidentiality or integrity impact, no code execution, and no privilege requirement. Affected versions are OpenCV through 4.14.0 and 5.0.0 through 5.1.0. |
| Impact | This is a moderate-severity, non-urgent availability issue, not a critical priority. The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) tells a consistent story: impact is confined to availability (VA:H) with no confidentiality or integrity loss, the attack is local and requires passive user interaction (UI:P) - a victim must open an attacker-supplied YAML file through cv::FileStorage. CWE-835 (infinite loop) matches the described symptom of a thread spinning at full CPU. No EPSS score and no KEV listing were provided, and there is no indication of active exploitation, so exploitation status is: no public weaponized exploit is confirmed, though a public PoC reference exists (the OSS-Fuzz issue that found it) and the fixing commit's regression test embeds the exact triggering input - it is not verified as working standalone exploit code. The vuln.today Decision label is 'this_month', consistent with a real-but-not-emergency DoS. The main unknown is the real attack surface: whether a given deployment ever feeds untrusted YAML into FileStorage. One signal to verify: the vector is AV:L, but any application that reads a remotely- or user-supplied YAML/model file through cv::FileStorage effectively exposes this over a network or upload path, which would raise practical reach - treat AV:L as the parsing-site classification, not proof that attacker input is always local. |
| Exploit ScenarioDerived | An application built on OpenCV loads a configuration, calibration, or model file in YAML format through cv::FileStorage, accepting the file from a user upload, shared storage, or another untrusted source. An attacker supplies a crafted YAML file containing a non-separator '-' line after the first document; when the application parses it, YAMLParser::parse enters an infinite loop and the processing thread hangs at 100% CPU, denying service. A public PoC reference exists via OSS-Fuzz and the fix commit includes the exact triggering input, though no verified weaponized exploit was provided. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
OpenCV's YAML parser can be driven into an infinite loop by a crafted multi-document YAML stream, causing the parsing thread to hang at full CPU and denying service to applications that call cv::FileStorage on attacker-controlled files. OpenCV through 4.14.0 and 5.0.0 through 5.1.0 are affected; the issue is a moderate-severity, non-urgent availability problem requiring local file ingestion and user interaction, with no privileges required and no confidentiality or integrity impact. No public exploit code was identified at time of analysis, while upstream commit ede3313ae7157662b6c038adf758ad409cfedf40 and PR #31041 provide a fix and a regression test, though a released patched version is not independently confirmed.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. Apply the upstream commit ede3313ae7157662b6c038adf758ad409cfedf40 (PR #31041) or upgrade to an OpenCV release that includes it, and verify the release notes identify CVE-2026-135290. Because exploitation requires an application to call cv::FileStorage on attacker-controlled YAML, restrict YAML parsing to trusted, developer-supplied configuration or model files; if untrusted YAML must be processed, run the parse in an isolated worker process with a timeout so a hung thread can be killed. Track the OSS-Fuzz issue and VulnCheck advisory for updated release information: https://issues.oss-fuzz.com/issues/492921270 and https://www.vulncheck.com/advisories/opencv-through-4.14.0-and-5.0.0-through-5.1.0-infinite-loop-via-yamlparser-parse.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenCV's core persistence module implements FileStorage, which can read YAML, XML, and JSON; the affected code is YAMLParser::parse in modules/core/src/persistence_yml.cpp. The root cause is CWE-835, a loop with an unreachable exit condition: after the first YAML document, a line beginning with '-' that is not the '---' document separator is not rejected, so the parser keeps looping instead of raising an error. The upstream fix adds an else branch that calls CV_PARSE_ERROR_CPP("The YAML streams must start with '---', except the first one"); the regression test uses the content '%YAML:1.0\n---\na: 1\n...\n- 2\n' and expects a cv::Exception. Affected source references are the 4.14.0 lines 797-825 and 5.1.0 lines 820-851 of persistence_yml.cpp, plus the OSS-Fuzz issue 492921270.
Know when Opencv gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
A victim must open an attacker-supplied YAML file through FileStorage (AV:L, UI:R), no privileges are needed, and the sole impact is a CPU-bound hang (A:H; C:N/I:N).
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow4
OpenCV 3.0.0 has a double free issue that allows attackers to execute arbitrary code. Rated high severity (CVSS 8.8), th
OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in the cv::BmpDecoder::readData function
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the FillColorRow8 function
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the FillUniColor function i
OpenCV (Open Source Computer Vision Library) through 3.3 has an invalid write in the cv::RLByteStream::getBytes function
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds read error in the function icvCvt_BGRA2BGR
OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds read error in the cv::RBaseStream::readBlo
An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1. Rated high severity (CVSS 8.2), this vulnerability
OpenCV (Open Source Computer Vision Library) through 3.3 has a denial of service (memory consumption) issue, as demonstr
OpenCV (Open Source Computer Vision Library) through 3.3 has a denial of service (CPU consumption) issue, as demonstrate
EUVD-2026-133241
GHSA-h35f-7wcf-2h7h
NVD
CVE.org
EPSS
Exploit-DB