Advisory

PYSEC-2026-722

Also known as: CVE-2019-15939, GHSA-hxfw-jm98-v4mq, PYSEC-2026-2799, PYSEC-2026-2822, PYSEC-2026-2838

Summary

Divide By Zero in OpenCV.

Details

An issue was discovered in OpenCV 4.1.0 (OpenCV-Python 4.1.0.25). There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.

Severity

Medium Basis: CVSS v3 score 5.9, vector CVSS:3.1/AV:N/AC:H/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:43 UTC

Affected packages and fixes

opencv-contrib-python-headless

PyPI · All systems

Affected

  • introduced 0, fixed 4.1.1.26 (ecosystem)

Fixed versions

4.1.1.26

Fix

  • 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