{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2017-12862","id":"CVE-2017-12862","title":"Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV","description":"In modules/imgcodecs/src/grfmt_pxm.cpp, the length of buffer AutoBuffer _src is small than expected, which will cause copy buffer overflow later. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.","descriptionLong":"In modules/imgcodecs/src/grfmt_pxm.cpp, the length of buffer AutoBuffer _src is small than expected, which will cause copy buffer overflow later. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.","published":"2017-08-15T16:00:00.000Z","updated":"2026-10-24T10:47:28.817232231Z","reserved":"2017-08-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","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":["<3.3.1.11"],"fixed":["3.3.1.11"],"advisory":"GHSA-5rpc-gwh9-q9fg"},{"ecosystem":"PyPI","name":"opencv-contrib-python","purl":"pkg:pypi/opencv-contrib-python","ranges":["<3.3.1.11"],"fixed":["3.3.1.11"],"advisory":"GHSA-5rpc-gwh9-q9fg"}],"cwes":["CWE-787","CWE-119"],"aliases":["GHSA-5rpc-gwh9-q9fg","PYSEC-2026-2807","PYSEC-2026-699"],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://security.gentoo.org/glsa/201712-02","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/opencv/opencv/issues/9370","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12862","tags":["advisory"]},{"url":"https://github.com/opencv/opencv/pull/9376","tags":["web"]},{"url":"https://github.com/opencv/opencv-python","tags":["package"]},{"url":"https://pypi.org/project/opencv-python","tags":["package"]},{"url":"https://github.com/advisories/GHSA-5rpc-gwh9-q9fg","tags":["advisory"]},{"url":"https://pypi.org/project/opencv-contrib-python","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03091,"epssPercentile":0.87977,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2017-12862","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12862","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2017-12862","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5rpc-gwh9-q9fg","ok":true,"note":"GHSA-5rpc-gwh9-q9fg"},{"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-2017-12862","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}