CVE-2017-9226

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 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.

References

http://www.securityfocus.com/bid/101244

https://access.redhat.com/errata/RHSA-2018:1296

https://github.com/kkos/oniguruma/commit/b4bf968ad52afe14e60a2dc8a95d3555c543353a

https://github.com/kkos/oniguruma/commit/f015fbdd95f76438cd86366467bb2b39870dd7c6

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

Details

Source: MITRE

Published: 2017-05-24

Updated: 2018-10-31

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 (29 total)

IDNameProductFamilySeverity
137966EulerOS Virtualization 3.0.6.0 : php (EulerOS-SA-2020-1747)NessusHuawei Local Security Checks
critical
132184EulerOS 2.0 SP3 : php (EulerOS-SA-2019-2649)NessusHuawei Local Security Checks
critical
131895EulerOS 2.0 SP2 : ruby (EulerOS-SA-2019-2403)NessusHuawei Local Security Checks
critical
131592EulerOS 2.0 SP2 : php (EulerOS-SA-2019-2438)NessusHuawei Local Security Checks
critical
130683EulerOS 2.0 SP5 : php (EulerOS-SA-2019-2221)NessusHuawei Local Security Checks
critical
98864PHP 7.1.x < 7.1.7 Multiple VulnerabilitiesWeb Application ScanningComponent Vulnerability
critical
98844PHP 7.0.x < 7.0.21 Multiple VulnerabilitiesWeb Application ScanningComponent Vulnerability
critical
98822PHP 5.6.x < 5.6.31 Multiple VulnerabilitiesWeb Application ScanningComponent Vulnerability
critical
120000SUSE SLES12 Security Update : php7 (SUSE-SU-2017:1717-1)NessusSuSE Local Security Checks
critical
119999SUSE SLES12 Security Update : php5 (SUSE-SU-2017:1662-1)NessusSuSE Local Security Checks
critical
103121Tenable SecurityCenter PHP < 5.6.31 Multiple Vulnerabilities (TNS-2017-12NessusMisc.
critical
102545Amazon Linux AMI : php56 (ALAS-2017-871)NessusAmazon Linux Local Security Checks
critical
102416Ubuntu 14.04 LTS / 16.04 LTS / 17.04 : php5, php7.0 vulnerabilities (USN-3382-1)NessusUbuntu Local Security Checks
critical
102181Amazon Linux AMI : php70 (ALAS-2017-867)NessusAmazon Linux Local Security Checks
critical
101864Fedora 24 : php (2017-5ade380ab2)NessusFedora Local Security Checks
critical
101797Fedora 26 : php (2017-b8bb4b86e2)NessusFedora Local Security Checks
critical
101745Fedora 26 : oniguruma (2017-ee01a2ced6)NessusFedora Local Security Checks
critical
101538Fedora 25 : php (2017-b674dc22ad)NessusFedora Local Security Checks
critical
101527PHP 7.1.x < 7.1.7 Multiple VulnerabilitiesNessusCGI abuses
critical
101526PHP 7.0.x < 7.0.21 Multiple VulnerabilitiesNessusCGI abuses
critical
101525PHP 5.6.x < 5.6.31 Multiple VulnerabilitiesNessusCGI abuses
critical
101332FreeBSD : oniguruma -- multiple vulnerabilities (b396cf6c-62e6-11e7-9def-b499baebfeaf)NessusFreeBSD Local Security Checks
critical
101316Slackware 14.0 / 14.1 / 14.2 / current : php (SSA:2017-188-01)NessusSlackware Local Security Checks
critical
101287openSUSE Security Update : php7 (openSUSE-2017-790)NessusSuSE Local Security Checks
critical
101219openSUSE Security Update : php5 (openSUSE-2017-764)NessusSuSE Local Security Checks
critical
100866SUSE SLES11 Security Update : php53 (SUSE-SU-2017:1585-1)NessusSuSE Local Security Checks
critical
100748Fedora 24 : oniguruma (2017-e2d6d0067f)NessusFedora Local Security Checks
critical
100730Fedora 25 : oniguruma (2017-60997f0d14)NessusFedora Local Security Checks
critical
100478Debian DLA-958-1 : libonig security updateNessusDebian Local Security Checks
critical