Vulnerability Name:

CVE-2017-9227

Assigned:2017-05-24
Published:2017-05-24
Updated:2018-05-03
Summary:An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A stack out-of-bounds read occurs in mbc_enc_len() during regular expression searching. Invalid handling of reg->dmin in forward_search_range() could result in an invalid pointer dereference, as an out-of-bounds read from a stack buffer.
CVSS v3 Severity:9.8 Critical (CVSS v3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (Temporal CVSS v3 Vector: CVSS:3.0/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.3 High (CCN CVSS v3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
6.4 Medium (CCN Temporal CVSS v3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/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): Low
Integrity (I): Low
Availibility (A): Low
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.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-125
References:Source: BID
Type: UNKNOWN
100538

Source: REDHAT
Type: UNKNOWN
RHSA-2018:1296

Source: XF
Type: UNKNOWN
oniguruma-cve20179227-bo(127148)

Source: CONFIRM
Type: VENDOR_ADVISORY
https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814

Source: CONFIRM
Type: VENDOR_ADVISORY
https://github.com/kkos/oniguruma/issues/58

Vulnerable Configuration:Configuration 1:
  • cpe:/a:oniguruma_project:oniguruma:6.2.0:*:*:*:*:*:*:*

  • Configuration 2:
  • cpe:/a:php:php:7.1.5::~~~oniguruma-mod~~:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.4.1::~~~oniguruma-mod~~:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:20179227
    V
    CVE-2017-9227
    2018-09-18
    oval:com.ubuntu.xenial:def:20179227000
    V
    CVE-2017-9227 on Ubuntu 16.04 LTS (xenial) - medium.
    2017-05-24
    oval:com.ubuntu.bionic:def:20179227000
    V
    CVE-2017-9227 on Ubuntu 18.04 LTS (bionic) - medium.
    2017-05-24
    oval:com.ubuntu.trusty:def:20179227000
    V
    CVE-2017-9227 on Ubuntu 14.04 LTS (trusty) - medium.
    2017-05-24
    oval:com.ubuntu.artful:def:20179227000
    V
    CVE-2017-9227 on Ubuntu 17.10 (artful) - medium.
    2017-05-24
    BACK
    oniguruma_project oniguruma 6.2.0
    php php 7.1.5
    ruby-lang ruby 2.4.1