CVE-2017-12863
HIGH8.8EPSS 1.7%Integer Overflow or Wraparound in OpenCV
Published: 10/12/2021Modified: 4/28/2026
Description
In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function PxMDecoder::readData has an integer overflow when calculate src_pitch. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.
Affected packages (3)
- Debian/opencvfrom 0, < 3.2.0+dfsg-6
- PyPI/opencv-contrib-pythonfrom 0, < 3.3.1.11
- PyPI/opencv-pythonfrom 0, < 3.3.1.11
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2017-12863
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2017-12863
- PATCHhttps://github.com/opencv/opencv-python
- WEBhttps://github.com/opencv/opencv/issues/9371
- WEBhttps://github.com/opencv/opencv/pull/9376
- WEBhttps://lists.debian.org/debian-lts-announce/2018/07/msg00030.html
- WEBhttps://lists.debian.org/debian-lts-announce/2021/10/msg00028.html
- WEBhttps://security.gentoo.org/glsa/201712-02