Vulnerability Name:

CVE-2017-9225 (CCN-127146)

Assigned:2017-05-24
Published:2017-05-24
Updated:2017-06-02
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 write in onigenc_unicode_get_case_fold_codes_by_str() occurs during regular expression compilation. Code point 0xFFFFFFFF is not properly handled in unicode_unfold_key(). A malformed regular expression could result in 4 bytes being written off the end of a stack buffer of expand_case_fold_string() during the call to onigenc_unicode_get_case_fold_codes_by_str(), a typical stack buffer overflow.
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.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: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-787
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2017-9225

Source: XF
Type: UNKNOWN
oniguruma-cve20179225-bo(127146)

Source: CONFIRM
Type: Patch, Third Party Advisory
https://github.com/kkos/oniguruma/commit/166a6c3999bf06b4de0ab4ce6b088a468cc4029f

Source: CCN
Type: oniguruma GIT Repository
Buffer Overflow in onigenc_unicode_get_case_fold_codes_by_str() #56

Source: CONFIRM
Type: Exploit, Third Party Advisory
https://github.com/kkos/oniguruma/issues/56

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2017-9225

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

  • Configuration 2:
  • cpe:/a:php:php:*:*:*:*:*:oniguruma-mod:*:* (Version <= 7.1.5)
  • OR cpe:/a:ruby-lang:ruby:*:*:*:*:*:oniguruma-mod:*:* (Version <= 2.4.1)

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

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.artful:def:20179225000
    V
    CVE-2017-9225 on Ubuntu 17.10 (artful) - medium.
    2017-05-24
    oval:com.ubuntu.bionic:def:201792250000000
    V
    CVE-2017-9225 on Ubuntu 18.04 LTS (bionic) - medium.
    2017-05-24
    oval:com.ubuntu.bionic:def:20179225000
    V
    CVE-2017-9225 on Ubuntu 18.04 LTS (bionic) - medium.
    2017-05-24
    oval:com.ubuntu.xenial:def:201792250000000
    V
    CVE-2017-9225 on Ubuntu 16.04 LTS (xenial) - medium.
    2017-05-24
    oval:com.ubuntu.trusty:def:20179225000
    V
    CVE-2017-9225 on Ubuntu 14.04 LTS (trusty) - medium.
    2017-05-24
    oval:com.ubuntu.xenial:def:20179225000
    V
    CVE-2017-9225 on Ubuntu 16.04 LTS (xenial) - medium.
    2017-05-24
    BACK
    oniguruma_project oniguruma 6.2.0
    php php *
    ruby-lang ruby *
    oniguruma_project oniguruma 6.2.0