{"id":"GHSA-hxfw-jm98-v4mq","summary":"Divide By Zero in OpenCV.","details":"An issue was discovered in OpenCV 4.1.0 (OpenCV-Python 4.1.0.25). There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.","aliases":["CVE-2019-15939","PYSEC-2026-2799","PYSEC-2026-2822","PYSEC-2026-2838","PYSEC-2026-722"],"modified":"2026-08-24T00:34:18.311676634Z","published":"2021-10-12T22:21:56Z","database_specific":{"nvd_published_at":"2019-09-05T16:15:00Z","cwe_ids":["CWE-369"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-10-06T20:35:29Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15939"},{"type":"WEB","url":"https://github.com/OpenCV/opencv/issues/15287"},{"type":"WEB","url":"https://github.com/opencv/opencv/pull/15382"},{"type":"PACKAGE","url":"https://github.com/opencv/opencv-python"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00025.html"}],"affected":[{"package":{"name":"opencv-python","ecosystem":"PyPI","purl":"pkg:pypi/opencv-python"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.1.26"}]}],"versions":["3.4.0.14","3.4.1.15","3.4.10.35","3.4.10.37","3.4.11.39","3.4.11.41","3.4.11.43","3.4.11.45","3.4.13.47","3.4.14.51","3.4.14.53","3.4.15.55","3.4.16.57","3.4.16.59","3.4.17.61","3.4.17.63","3.4.18.65","3.4.2.17","3.4.3.18","3.4.4.19","3.4.5.20","3.4.6.27","3.4.7.28","3.4.8.29","3.4.9.31","3.4.9.33","4.0.0.21","4.0.1.23","4.0.1.24","4.1.0.25"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-hxfw-jm98-v4mq/GHSA-hxfw-jm98-v4mq.json","last_known_affected_version_range":"\u003c= 4.1.0.25"}},{"package":{"name":"opencv-python-headless","ecosystem":"PyPI","purl":"pkg:pypi/opencv-python-headless"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.1.26"}]}],"versions":["3.4.10.37","3.4.11.39","3.4.11.41","3.4.11.43","3.4.11.45","3.4.13.47","3.4.14.51","3.4.14.53","3.4.15.55","3.4.16.57","3.4.16.59","3.4.17.61","3.4.17.63","3.4.18.65","3.4.3.18","3.4.4.19","3.4.5.20","3.4.6.27","3.4.7.28","3.4.8.29","3.4.9.33","4.0.0.21","4.0.1.24","4.1.0.25"],"database_specific":{"last_known_affected_version_range":"\u003c= 4.1.0.25","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-hxfw-jm98-v4mq/GHSA-hxfw-jm98-v4mq.json"}},{"package":{"name":"opencv-contrib-python","ecosystem":"PyPI","purl":"pkg:pypi/opencv-contrib-python"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.1.26"}]}],"versions":["3.4.10.35","3.4.10.37","3.4.11.39","3.4.11.41","3.4.11.43","3.4.11.45","3.4.13.47","3.4.14.51","3.4.14.53","3.4.15.55","3.4.16.57","3.4.16.59","3.4.17.61","3.4.17.63","3.4.18.65","3.4.2.17","3.4.3.18","3.4.4.19","3.4.5.20","3.4.6.27","3.4.7.28","3.4.8.29","3.4.9.31","3.4.9.33","4.0.0.21","4.0.1.23","4.0.1.24","4.1.0.25"],"database_specific":{"last_known_affected_version_range":"\u003c= 4.1.0.25","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-hxfw-jm98-v4mq/GHSA-hxfw-jm98-v4mq.json"}},{"package":{"name":"opencv-contrib-python-headless","ecosystem":"PyPI","purl":"pkg:pypi/opencv-contrib-python-headless"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.1.26"}]}],"versions":["3.4.0.14","3.4.10.37","3.4.11.41","3.4.11.43","3.4.11.45","3.4.13.47","3.4.14.51","3.4.14.53","3.4.15.55","3.4.16.57","3.4.16.59","3.4.17.61","3.4.17.63","3.4.18.65","3.4.2.17","3.4.3.18","3.4.4.19","3.4.5.20","3.4.6.27","3.4.7.28","3.4.8.29","3.4.9.33","4.0.0.21","4.0.1.23","4.0.1.24","4.1.0.25"],"database_specific":{"last_known_affected_version_range":"\u003c= 4.1.0.25","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-hxfw-jm98-v4mq/GHSA-hxfw-jm98-v4mq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}