CVE-2017-12864
opencv: Integer overflow in ReadNumber function in opencv/modules/imgcodecs/src/grfmt_pxm.cpp
Overview
Description
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.
Source: OX vulnerability database
Severity
8.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-190
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | opencv-contrib-python | <3.3.1.11 | 3.3.1.11 |
| PyPI | opencv-python | <3.3.1.11 | 3.3.1.11 |
Open a package to see all its vulnerabilities.
Operating systems · 9 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | opencv +4 | investigating |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | opencv | 3.2.0+dfsg-6 |
| 12 | opencv | 3.2.0+dfsg-6 |
| 13 | opencv | 3.2.0+dfsg-6 |
| 14 | opencv | 3.2.0+dfsg-6 |
| 9 | opencv | 2.4.9.1+dfsg1-2+deb9u1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| opencv | 3.2.0+dfsg-6 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | opencv | 3.2.0+dfsg-4ubuntu0.1 |
| 18.04-ESM | opencv | 3.2.0+dfsg-4ubuntu0.1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2017-12864
- github.com https://github.com/opencv/opencv-python
- github.com https://github.com/opencv/opencv/issues/9372
- github.com https://github.com/opencv/opencv/pull/9376
- lists.debian.org https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2017-12864
- security.gentoo.org https://security.gentoo.org/glsa/201712-02
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2017-12864
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.