---
id: CVE-2019-14491
aliases:
  - GHSA-fm39-cw8h-3p63
  - PYSEC-2026-2797
  - PYSEC-2026-2818
  - PYSEC-2026-2836
  - PYSEC-2026-720
title: Out-of-bounds Read in OpenCV
summary: Out-of-bounds Read in OpenCV
severity: high
cvss: 8.2
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H'
vendor: opencv-python
product: opencv-python
ecosystem: pip
affected:
  - opencv-python < 3.4.7.28
  - 'opencv-python >= 4.0.0.21, < 4.1.1.26'
  - opencv-python-headless < 3.4.7.28
  - 'opencv-python-headless >= 4.0.0.21, < 4.1.1.26'
  - opencv-contrib-python < 3.4.7.28
  - 'opencv-contrib-python >= 4.0.0.21, < 4.1.1.26'
  - opencv-contrib-python-headless < 3.4.7.28
  - 'opencv-contrib-python-headless >= 4.0.0.21, < 4.1.1.26'
patched:
  - opencv-python 3.4.7.28
  - opencv-python 4.1.1.26
  - opencv-python-headless 3.4.7.28
  - opencv-python-headless 4.1.1.26
  - opencv-contrib-python 3.4.7.28
  - opencv-contrib-python 4.1.1.26
  - opencv-contrib-python-headless 3.4.7.28
  - opencv-contrib-python-headless 4.1.1.26
published: '2021-10-12'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:49:09.274722548Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-fm39-cw8h-3p63'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2019-14491'
  - url: 'https://github.com/opencv/opencv/issues/15125'
  - url: 'https://github.com/opencv/opencv-python'
  - url: 'https://github.com/opencv/opencv/compare/33b765d...4a7ca5a'
  - url: 'https://github.com/opencv/opencv/compare/371bba8...ddbd10c'
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HPFLN6QAX6SUA4XR4NMKKXX26H3TYCVQ
tags:
  - osv
  - pip
epss: 0.02669
epssPercentile: 0.85119
ingestedAt: '2026-07-08T18:25:48.930Z'
---

## Overview

An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1 (OpenCV-Python before 3.4.7.28 and 4.x before 4.1.1.26). There is an out of bounds read in the function cv::predictOrdered<cv::HaarEvaluator> in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service.

## Affected packages

- `opencv-python < 3.4.7.28`
- `opencv-python >= 4.0.0.21, < 4.1.1.26`
- `opencv-python-headless < 3.4.7.28`
- `opencv-python-headless >= 4.0.0.21, < 4.1.1.26`
- `opencv-contrib-python < 3.4.7.28`
- `opencv-contrib-python >= 4.0.0.21, < 4.1.1.26`
- `opencv-contrib-python-headless < 3.4.7.28`
- `opencv-contrib-python-headless >= 4.0.0.21, < 4.1.1.26`

## Remediation

Upgrade to a patched release:

- `opencv-python 3.4.7.28`
- `opencv-python 4.1.1.26`
- `opencv-python-headless 3.4.7.28`
- `opencv-python-headless 4.1.1.26`
- `opencv-contrib-python 3.4.7.28`
- `opencv-contrib-python 4.1.1.26`
- `opencv-contrib-python-headless 3.4.7.28`
- `opencv-contrib-python-headless 4.1.1.26`
