CVE-2017-9225

Impact:
Moderate
Public Date:
2017-05-22
CWE:
CWE-121
Bugzilla:
1466733: CVE-2017-9225 oniguruma: Out-of-bounds stack write in onigenc_unicode_get_case_fold_codes_by_str() during regular expression compilation

The MITRE CVE dictionary describes this issue as:

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.

Find out more about CVE-2017-9225 from the MITRE CVE dictionary dictionary and NIST NVD.

CVSS v3 metrics

NOTE: The following CVSS v3 metrics and score provided are preliminary and subject to review.

CVSS3 Base Score 5.9
CVSS3 Base Metrics CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network
Attack Complexity High
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity Impact None
Availability Impact High

Affected Packages State

Platform Package State
Red Hat Subscription Asset Manager 1 ruby193-ruby Will not fix
Red Hat Software Collections for Red Hat Enterprise Linux rh-php70-php Not affected
Red Hat Software Collections for Red Hat Enterprise Linux rh-ruby23-ruby Not affected
Red Hat Software Collections for Red Hat Enterprise Linux rh-ruby22-ruby Not affected
Red Hat Software Collections for Red Hat Enterprise Linux rh-ruby24-ruby Not affected
Red Hat Software Collections for Red Hat Enterprise Linux rh-php56-php Not affected
Red Hat OpenShift Enterprise 2 php Not affected
Red Hat Enterprise Linux 7 php Not affected
Red Hat Enterprise Linux 7 ruby Not affected
Red Hat Enterprise Linux 6 oniguruma Not affected
Red Hat Enterprise Linux 6 php Not affected
Red Hat Enterprise Linux 6 ruby Not affected
Red Hat Enterprise Linux 5 php53 Not affected
Red Hat Enterprise Linux 5 php Not affected
Red Hat Enterprise Linux 5 ruby Not affected
Unless explicitly stated as not affected, all previous versions of packages in any minor update stream of a product listed here should be assumed vulnerable, although may not have been subject to full analysis.
Last Modified

CVE description copyright © 2017, The MITRE Corporation