---
id: CVE-2019-14492
aliases:
  - GHSA-fw99-f933-rgh8
  - PYSEC-2026-2798
  - PYSEC-2026-2821
  - PYSEC-2026-2837
  - PYSEC-2026-721
title: Out-of-bounds Read and Out-of-bounds Write in OpenCV
summary: Out-of-bounds Read and Out-of-bounds Write in OpenCV
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/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.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.330001957Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-fw99-f933-rgh8'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2019-14492'
  - url: 'https://github.com/opencv/opencv/issues/15124'
  - 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: 'http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00025.html'
tags:
  - osv
  - pip
epss: 0.02783
epssPercentile: 0.85791
ingestedAt: '2026-07-08T18:25:49.146Z'
---

## 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/write in the function HaarEvaluator::OptFeature::calc 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`
