PT-2017-2621

CVE-2017-9226

·

Published

2017-05-18

·

Updated

2026-10-19

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Oniguruma versions 6.2.0 Oniguruma-mod in Ruby versions through 2.4.1 mbstring in PHP versions through 7.1.5
Description The issue is caused by incorrect handling of numbers larger than 0xff in the fetch token() and fetch token in cc() functions during regular expression compilation. Exploitation of this issue may allow a remote attacker to cause memory corruption by using a specially crafted octal number in the form of "700" that exceeds 0xff, resulting in an out-of-bounds write when processed. This can lead to memory corruption due to the incorrect handling of octal numbers in the next state val() function.
Recommendations For Oniguruma version 6.2.0, consider disabling the fetch token() and fetch token in cc() functions until a patch is available. For Oniguruma-mod in Ruby versions through 2.4.1, restrict the use of octal numbers in regular expressions to prevent exploitation. For mbstring in PHP versions through 7.1.5, avoid using the next state val() function with malformed regular expressions containing octal numbers larger than 0xff until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploitability
Exploit
Impacts
Researchers
Vendors
Affected products
Related identifiers
ALT-PU-2017-1820
ALT-PU-2017-1822
ALT-PU-2017-1855
CLSA-2026-1792167430
CLSA-2026-1792174968
DLA-958-1
MGASA-2017-0246
RHSA-2018:1296
SUSE-SU-2017:1585-1
SUSE-SU-2017:1662-1
SUSE-SU-2017:1717-1
USN-3382-1
USN-3382-2
Found an issue in the description? Have something to add? Feel free to write us 👾