Skip to content
Fencer Vulns
medium 6.5

CVE-2019-19624 json

Out-of-bounds Read in OpenCV

published 2019-12-06 6 y ago modified 2026-09-10 1 mo ago also GHSA-jggw-2q6g-c3m6 , PYSEC-2026-2800 , PYSEC-2026-2824 , PYSEC-2026-2839 , PYSEC-2026-723 , EUVD-2021-2217

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.8%
EPSS 1.8% chance of exploitation in 30 days, percentile 78%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi opencv-python 4.1.0.25
  • pypi opencv-python-headless 4.1.0.25
  • pypi opencv-contrib-python 4.1.0.25
  • pypi opencv-contrib-python-headless 4.1.0.25
  • opencv opencv 4.1.1
  • opencv Debian 14, Debian 13, Debian 12 4.1.2+dfsg-3

debian advisories DEBIAN-CVE-2019-19624

  • opencv Ubuntu Pro 18.04 LTS 3.2.0+dfsg-4ubuntu0.1+esm4

ubuntu advisories UBUNTU-CVE-2019-19624

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-19624 updated cvss 5.3

opencv: out-of-bounds read in DIS optflow algorithm when dealing with small images

  • Red Hat Enterprise Linux 8 opencv, opencv-core, opencv-contrib, python3-opencv
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux 6 opencv, opencv-python Red Hat Enterprise Linux 7 opencv, opencv-core, opencv-python
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.76% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/opencv/opencv/issues/14554 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
NVD 2.0 6.4 AV:N/AC:L/Au:N/C:P/I:N/A:P
OSV 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
GitHub 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Affected packages

ecosystem package affected fixed in
pypi opencv-python
<4.1.0.25
4.1.0.25
pypi opencv-python-headless
<4.1.0.25
4.1.0.25
pypi opencv-contrib-python
<4.1.0.25
4.1.0.25
pypi opencv-contrib-python-headless
<4.1.0.25
4.1.0.25

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.