{"id":"CVE-2019-19624","published":"2019-12-06T14:26:56Z","modified":"2024-08-05T02:25:12Z","title":"An out-of-bounds read was discovered in OpenCV before 4.1.1","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01756,"percentile":0.785,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/opencv/opencv/issues/14554","tags":["x_refsource_MISC"]},{"url":"https://github.com/opencv/opencv/commit/d1615ba11a93062b1429fce9f0f638d1572d3418","tags":["x_refsource_MISC"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":15.7}]},"affected":[{"ecosystem":"PyPI","package":"opencv-python","vulnerableRanges":["<4.1.0.25"],"patched":["4.1.0.25"],"from":["GHSA-jggw-2q6g-c3m6","PYSEC-2026-2824"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-python-headless","vulnerableRanges":["<4.1.0.25"],"patched":["4.1.0.25"],"from":["GHSA-jggw-2q6g-c3m6","PYSEC-2026-2839"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-contrib-python","vulnerableRanges":["<4.1.0.25"],"patched":["4.1.0.25"],"from":["GHSA-jggw-2q6g-c3m6","PYSEC-2026-2800"],"provenance":"source"},{"ecosystem":"PyPI","package":"opencv-contrib-python-headless","vulnerableRanges":["<4.1.0.25"],"patched":["4.1.0.25"],"from":["GHSA-jggw-2q6g-c3m6","PYSEC-2026-723"],"provenance":"source"}],"summary":{"text":"An out-of-bounds read exists in OpenCV versions before 4.1.1, in the dense optical flow code of dis_flow.cpp, specifically within the calc() and ocl_calc() functions. The code assumes coarsest_scale is greater than or equal to finest_scale, an assumption that fails for small images and causes reads past the heap-allocated Ux and Uy arrays.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:04Z"},"euvd":{"id":"EUVD-2021-2217","exploited":false,"provenance":"source"}}