Vulnerability Name:

CVE-2017-12863 (CCN-130525)

Assigned:2017-08-15
Published:2017-08-15
Updated:2021-11-30
Summary: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.
CVSS v3 Severity:8.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
7.7 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:U/RC:R)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
7.3 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
6.4 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:U/RL:U/RC:R)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): Low
CVSS v2 Severity:6.8 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
7.5 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
Vulnerability Type:CWE-190
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2017-12863

Source: XF
Type: UNKNOWN
opencv-cve201712863-overflow(130525)

Source: CCN
Type: opencv GIT Repository
Integer overflow in PxMDecoder::readData #9371

Source: MISC
Type: Issue Tracking, Patch, Third Party Advisory
https://github.com/opencv/opencv/issues/9371

Source: MLIST
Type: Mailing List, Third Party Advisory
[debian-lts-announce] 20180722 [SECURITY] [DLA 1438-1] opencv security update

Source: MLIST
Type: Mailing List, Third Party Advisory
[debian-lts-announce] 20211030 [SECURITY] [DLA 2799-1] opencv security update

Source: GENTOO
Type: Third Party Advisory
GLSA-201712-02

Vulnerable Configuration:Configuration 1:
  • cpe:/a:opencv:opencv:*:*:*:*:*:*:*:* (Version <= 3.3.0)

  • Configuration 2:
  • cpe:/o:debian:debian_linux:8.0:*:*:*:*:*:*:*
  • OR cpe:/o:debian:debian_linux:9.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:201712863
    V
    CVE-2017-12863
    2019-09-27
    oval:com.ubuntu.artful:def:201712863000
    V
    CVE-2017-12863 on Ubuntu 17.10 (artful) - medium.
    2017-08-15
    oval:com.ubuntu.bionic:def:201712863000
    V
    CVE-2017-12863 on Ubuntu 18.04 LTS (bionic) - medium.
    2017-08-15
    oval:com.ubuntu.bionic:def:2017128630000000
    V
    CVE-2017-12863 on Ubuntu 18.04 LTS (bionic) - medium.
    2017-08-15
    oval:com.ubuntu.trusty:def:201712863000
    V
    CVE-2017-12863 on Ubuntu 14.04 LTS (trusty) - medium.
    2017-08-15
    oval:com.ubuntu.xenial:def:2017128630000000
    V
    CVE-2017-12863 on Ubuntu 16.04 LTS (xenial) - medium.
    2017-08-15
    oval:com.ubuntu.xenial:def:201712863000
    V
    CVE-2017-12863 on Ubuntu 16.04 LTS (xenial) - medium.
    2017-08-15
    BACK
    opencv opencv *
    debian debian linux 8.0
    debian debian linux 9.0