CVE-2017-9226

Related Vulnerabilities: CVE-2017-9226  

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 heap out-of-bounds write or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of '\700' would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption.

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 heap out-of-bounds write or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of '\700' would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption.

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

CVSS v3 metrics

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

Red Hat Security Errata

Platform Errata Release Date
Red Hat Software Collections for Red Hat Enterprise Linux 6 (rh-php70-php) RHSA-2018:1296 2018-05-03
Red Hat Software Collections for Red Hat Enterprise Linux 7 (rh-php70-php) RHSA-2018:1296 2018-05-03

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-ruby23-ruby Will not fix
Red Hat Software Collections for Red Hat Enterprise Linux rh-ruby22-ruby Will not fix
Red Hat Software Collections for Red Hat Enterprise Linux rh-ruby24-ruby Will not fix
Red Hat Software Collections for Red Hat Enterprise Linux rh-php56-php Will not fix
Red Hat Enterprise Linux 7 php Will not fix
Red Hat Enterprise Linux 7 ruby Will not fix
Red Hat Enterprise Linux 6 oniguruma Will not fix
Red Hat Enterprise Linux 6 php Will not fix
Red Hat Enterprise Linux 6 ruby Will not fix
Red Hat Enterprise Linux 5 php53 Will not fix
Red Hat Enterprise Linux 5 php Will not fix
Red Hat Enterprise Linux 5 ruby Will not fix