CVE-2017-9225

critical
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Description

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.

References

https://github.com/kkos/oniguruma/commit/166a6c3999bf06b4de0ab4ce6b088a468cc4029f

https://github.com/kkos/oniguruma/issues/56

Details

Source: MITRE

Published: 2017-05-24

Updated: 2017-06-02

Type: CWE-787

Risk Information

CVSS v2

Base Score: 7.5

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 10

Severity: HIGH

CVSS v3

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 3.9

Severity: CRITICAL

Vulnerable Software

Configuration 1

OR

cpe:2.3:a:oniguruma_project:oniguruma:6.2.0:*:*:*:*:*:*:*

Configuration 2

OR

cpe:2.3:a:php:php:*:*:*:*:*:oniguruma-mod:*:* versions up to 7.1.5 (inclusive)

cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:oniguruma-mod:*:* versions up to 2.4.1 (inclusive)

Tenable Plugins

View all (4 total)

IDNameProductFamilySeverity
121702Photon OS 1.0: Ruby PHSA-2017-0021NessusPhotonOS Local Security Checks
critical
111870Photon OS 1.0: Bindutils / Krb5 / Ruby / Sudo / Zlib PHSA-2017-0021 (deprecated)NessusPhotonOS Local Security Checks
high
101745Fedora 26 : oniguruma (2017-ee01a2ced6)NessusFedora Local Security Checks
critical
100730Fedora 25 : oniguruma (2017-60997f0d14)NessusFedora Local Security Checks
critical