CVE-2017-12864Published Aug 15, 2017 · Aug 15Updated Oct 24
Integer Overflow or Wraparound in OpenCV
High8.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| opencv-python PyPI |
|
|
| opencv-contrib-python PyPI |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| opencv-python PyPI |
|
|
| opencv-contrib-python PyPI |
|
|
In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function ReadNumber did not checkout the input length, which lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.
From the CVE record · mitre
OpenCV’s ReadNumber function in the PXM image parser does not check input length, allowing an integer overflow. Processing a remotely sourced image may lead to remote code execution or denial of service; the input does not specify authentication or user-interaction requirements.
Check installations of OpenCV 3.3 and earlier, or PyPI opencv-python and opencv-contrib-python versions before 3.3.1.11.