Vulnerability Name:

CVE-2018-7186 (CCN-139246)

Assigned:2018-02-16
Published:2018-02-16
Updated:2020-08-24
Summary:Leptonica before 1.75.3 does not limit the number of characters in a %s format argument to fscanf or sscanf, which allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a long string, as demonstrated by the gplotRead and ptaReadStream functions.
CVSS v3 Severity:9.8 Critical (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
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): High
Integrity (I): High
Availibility (A): High
7.5 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
6.5 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
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): None
Integrity (I): None
Availibility (A): High
CVSS v2 Severity:7.5 High (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
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
7.8 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:N/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Complete
Vulnerability Type:CWE-787
Vulnerability Consequences:Denial of Service
References:Source: MITRE
Type: CNA
CVE-2018-7186

Source: MISC
Type: Third Party Advisory
https://bugs.debian.org/890548

Source: XF
Type: UNKNOWN
leptonica-cve20187186-dos(139246)

Source: CCN
Type: Leptonica GIT Repository
Security fixes: expect final changes for release 1.75.3

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99a

Source: MLIST
Type: Mailing List, Third Party Advisory
[debian-lts-announce] 20180307 [SECURITY] [DLA 1302-1] leptonlib security update

Source: MISC
Type: Mailing List, Third Party Advisory
https://lists.debian.org/debian-lts/2018/02/msg00054.html

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2018-7186

Vulnerable Configuration:Configuration 1:
  • cpe:/a:leptonica:leptonica:*:*:*:*:*:*:*:* (Version < 1.75.3)

  • Configuration 2:
  • cpe:/o:debian:debian_linux:7.0:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:leptonica:leptonica:1.75.2:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:20187186
    V
    CVE-2018-7186
    2022-06-30
    oval:org.opensuse.security:def:112541
    P
    leptonica-devel-1.80.0-1.9 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:106030
    P
    leptonica-devel-1.80.0-1.9 on GA media (Moderate)
    2021-10-01
    oval:com.ubuntu.bionic:def:201871860000000
    V
    CVE-2018-7186 on Ubuntu 18.04 LTS (bionic) - medium.
    2018-02-16
    oval:com.ubuntu.artful:def:20187186000
    V
    CVE-2018-7186 on Ubuntu 17.10 (artful) - medium.
    2018-02-16
    oval:com.ubuntu.xenial:def:20187186000
    V
    CVE-2018-7186 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-02-16
    oval:com.ubuntu.xenial:def:201871860000000
    V
    CVE-2018-7186 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-02-16
    oval:com.ubuntu.bionic:def:20187186000
    V
    CVE-2018-7186 on Ubuntu 18.04 LTS (bionic) - medium.
    2018-02-16
    oval:com.ubuntu.disco:def:201871860000000
    V
    CVE-2018-7186 on Ubuntu 19.04 (disco) - medium.
    2018-02-16
    oval:com.ubuntu.cosmic:def:20187186000
    V
    CVE-2018-7186 on Ubuntu 18.10 (cosmic) - medium.
    2018-02-16
    oval:com.ubuntu.cosmic:def:201871860000000
    V
    CVE-2018-7186 on Ubuntu 18.10 (cosmic) - medium.
    2018-02-16
    oval:com.ubuntu.trusty:def:20187186000
    V
    CVE-2018-7186 on Ubuntu 14.04 LTS (trusty) - medium.
    2018-02-16
    BACK
    leptonica leptonica *
    debian debian linux 7.0
    leptonica leptonica 1.75.2