{"id":"CVE-2018-5269","aliases":["GHSA-89rj-5ggj-3p9p","PYSEC-2026-2812","PYSEC-2026-703"],"title":"Reachable Assertion in OpenCV.","summary":"Reachable Assertion in OpenCV.","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","vendor":"opencv-python","product":"opencv-python","ecosystem":"pip","affected":["opencv-python < 3.4.1.15","opencv-contrib-python < 3.4.1.15"],"patched":["opencv-python 3.4.1.15","opencv-contrib-python 3.4.1.15"],"published":"2021-10-12","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:49:09.100947457Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-89rj-5ggj-3p9p","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-5269"},{"url":"https://github.com/opencv/opencv/issues/10540"},{"url":"https://github.com/opencv/opencv/pull/10563"},{"url":"https://github.com/opencv/opencv-python"},{"url":"https://lists.debian.org/debian-lts-announce/2018/04/msg00019.html"},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html"},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html"},{"url":"http://www.securityfocus.com/bid/106945"}],"tags":["osv","pip"],"epss":0.01384,"epssPercentile":0.70566,"ingestedAt":"2026-07-08T18:25:47.340Z","slug":"CVE-2018-5269","body":"## Overview\n\nIn OpenCV 3.3.1 (corresponds with OpenCV-Python 3.3.1.11), an assertion failure happens in cv::RBaseStream::setPos in modules/imgcodecs/src/bitstrm.cpp because of an incorrect integer cast.\n\n## Affected packages\n\n- `opencv-python < 3.4.1.15`\n- `opencv-contrib-python < 3.4.1.15`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `opencv-python 3.4.1.15`\n- `opencv-contrib-python 3.4.1.15`","depth":"sunlit","depthScore":31,"depthScoreParts":{"impact":30.3,"likelihood":0.3,"exploitation":0,"ransomware":0},"changes":[]}