---
id: CVE-2017-12602
aliases:
  - GHSA-pqjj-6f5q-gqph
  - PYSEC-2026-2827
  - PYSEC-2026-713
title: Denial of Service in OpenCV
summary: Denial of Service in OpenCV
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: opencv-python
product: opencv-python
ecosystem: pip
affected:
  - opencv-python < 3.3.1.11
  - opencv-contrib-python < 3.3.1.11
patched:
  - opencv-python 3.3.1.11
  - opencv-contrib-python 3.3.1.11
published: '2021-10-12'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:49:09.326880983Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-pqjj-6f5q-gqph'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2017-12602'
  - url: 'https://github.com/opencv/opencv/issues/9311'
  - url: 'https://github.com/opencv/opencv/pull/9376'
  - url: 'https://github.com/opencv/opencv-python'
  - url: 'https://github.com/xiaoqx/pocs/blob/master/opencv.md'
  - url: 'https://security.gentoo.org/glsa/201712-02'
tags:
  - osv
  - pip
epss: 0.02748
epssPercentile: 0.85481
ingestedAt: '2026-07-08T18:25:51.835Z'
---

## Overview

OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python 3.3.0.9) has a denial of service (memory consumption) issue, as demonstrated by the 10-opencv-dos-memory-exhaust test case.

## Affected packages

- `opencv-python < 3.3.1.11`
- `opencv-contrib-python < 3.3.1.11`

## Remediation

Upgrade to a patched release:

- `opencv-python 3.3.1.11`
- `opencv-contrib-python 3.3.1.11`
