{"id":"CVE-2018-7712","details":"The validateInputImageSize function in modules/imgcodecs/src/loadsave.cpp in OpenCV 3.4.1 allows remote attackers to cause a denial of service (assertion failure) because (size.height \u003c= (1\u003c\u003c20)) may be false. Note: “OpenCV CV_Assert is not an assertion (C-like assert()), it is regular C++ exception which can raised in case of invalid or non-supported parameters.","modified":"2026-04-10T04:12:50.349381Z","published":"2018-03-05T23:29:00.207Z","references":[{"type":"ADVISORY","url":"https://github.com/xiaoqx/pocs/tree/master/opencv/dos-by-assert"},{"type":"REPORT","url":"https://github.com/opencv/opencv/issues/10998"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opencv/opencv","events":[{"introduced":"0"},{"last_affected":"3b15f3e3b9041ca742822e48c7241d1f39e611b8"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"3.4.1"}]}}],"versions":["2.2","3.2.0-rc","3.3.0-rc","3.4.0-rc","3.4.1","3.4.1-cvsdk"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-7712.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}