Advisory

PYSEC-2026-721

Also known as: CVE-2019-14492, GHSA-fw99-f933-rgh8, PYSEC-2026-2798, PYSEC-2026-2821, PYSEC-2026-2837

Summary

Out-of-bounds Read and Out-of-bounds Write in OpenCV

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-13 16:42 UTC

Affected packages and fixes

opencv-contrib-python-headless

PyPI · All systems

Affected

  • introduced 0, fixed 3.4.7.28, introduced 4.0.0.21, fixed 4.1.1.26 (ecosystem)

Fixed versions

3.4.7.28, 4.1.1.26

Fix

  • Fixed version 3.4.7.28
    pip install --upgrade opencv-contrib-python-headless==3.4.7.28
  • Fixed version 4.1.1.26
    pip install --upgrade opencv-contrib-python-headless==4.1.1.26

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences