Skip to main content

OpenCV EUVDEUVD-2026-133241

| CVE-2026-135290 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-11-23 disclosure@vulncheck.com GHSA-h35f-7wcf-2h7h
6.8
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious YAML with stray '-' line after first document
  2. Delivery
    Deliver file via upload or shared path
  3. Exploit
    Application parses it via cv::FileStorage
  4. Execution
    YAMLParser::parse enters infinite loop
  5. Impact
    Thread 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

opencv 0 ≤4.14.0
opencv 5.0.0 ≤5.1.0

Affected Packages

euvd opencv no fix

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

Vendor (vulncheck) PRIMARY 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
vuln.today AI 5.5 MEDIUM

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).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 93% exploitable
Prevalence
High
OpenCV is a very widely deployed computer-vision library across ML and vision software
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Opencv

View all
CVE-2017-12606 HIGH POC
8.8 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow4

CVE-2016-1516 HIGH POC
8.8 Apr 10

OpenCV 3.0.0 has a double free issue that allows attackers to execute arbitrary code. Rated high severity (CVSS 8.8), th

CVE-2017-12601 HIGH POC
8.8 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in the cv::BmpDecoder::readData function

CVE-2017-12605 HIGH POC
8.8 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the FillColorRow8 function

CVE-2017-12604 HIGH POC
8.8 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the FillUniColor function i

CVE-2017-12603 HIGH POC
8.8 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has an invalid write in the cv::RLByteStream::getBytes function

CVE-2017-12597 HIGH POC
8.8 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds write error in the function FillColorRow1

CVE-2017-12599 HIGH POC
8.8 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds read error in the function icvCvt_BGRA2BGR

CVE-2017-12598 HIGH POC
8.8 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has an out-of-bounds read error in the cv::RBaseStream::readBlo

CVE-2019-14491 HIGH POC
8.2 Aug 01

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

CVE-2017-12602 HIGH POC
7.5 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has a denial of service (memory consumption) issue, as demonstr

CVE-2017-12600 HIGH POC
7.5 Aug 07

OpenCV (Open Source Computer Vision Library) through 3.3 has a denial of service (CPU consumption) issue, as demonstrate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy