{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-19624","id":"CVE-2019-19624","title":"Out-of-bounds Read in OpenCV","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.","descriptionLong":"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.","published":"2019-12-06T14:26:56.000Z","updated":"2026-10-31T07:05:17.125559041Z","reserved":"2019-12-06T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","rating":"medium","source":"GitHub"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"opencv-python","purl":"pkg:pypi/opencv-python","ranges":["<4.1.0.25"],"fixed":["4.1.0.25"],"advisory":"GHSA-jggw-2q6g-c3m6"},{"ecosystem":"PyPI","name":"opencv-python-headless","purl":"pkg:pypi/opencv-python-headless","ranges":["<4.1.0.25"],"fixed":["4.1.0.25"],"advisory":"GHSA-jggw-2q6g-c3m6"},{"ecosystem":"PyPI","name":"opencv-contrib-python","purl":"pkg:pypi/opencv-contrib-python","ranges":["<4.1.0.25"],"fixed":["4.1.0.25"],"advisory":"GHSA-jggw-2q6g-c3m6"},{"ecosystem":"PyPI","name":"opencv-contrib-python-headless","purl":"pkg:pypi/opencv-contrib-python-headless","ranges":["<4.1.0.25"],"fixed":["4.1.0.25"],"advisory":"GHSA-jggw-2q6g-c3m6"}],"cwes":["CWE-125"],"aliases":["GHSA-jggw-2q6g-c3m6","PYSEC-2026-2800","PYSEC-2026-2824","PYSEC-2026-2839","PYSEC-2026-723"],"references":[{"url":"https://github.com/opencv/opencv/issues/14554","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://access.redhat.com/security/cve/cve-2019-19624","tags":["Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19624","tags":["advisory"]},{"url":"https://github.com/opencv/opencv-python","tags":["package"]},{"url":"https://github.com/opencv/opencv-python/releases/tag/25","tags":["web"]},{"url":"https://pypi.org/project/opencv-contrib-python","tags":["package"]},{"url":"https://github.com/advisories/GHSA-jggw-2q6g-c3m6","tags":["advisory"]},{"url":"https://pypi.org/project/opencv-python","tags":["package"]},{"url":"https://pypi.org/project/opencv-python-headless","tags":["package"]},{"url":"https://pypi.org/project/opencv-contrib-python-headless","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01756,"epssPercentile":0.78399,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-19624","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19624","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-19624","ok":true,"note":"4 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-jggw-2q6g-c3m6","ok":true,"note":"GHSA-jggw-2q6g-c3m6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-19624","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}