PT-2017-18794

CVE-2017-9229

·

Published

2017-05-24

·

Updated

2026-06-15

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Oniguruma version 6.2.0 Oniguruma-mod in Ruby versions through 2.4.1 mbstring in PHP versions through 7.1.5
Description An issue was discovered that causes a SIGSEGV in left adjust char head() during regular expression compilation. This occurs due to invalid handling of reg->dmax in forward search range(), which could result in an invalid pointer dereference. The issue normally leads to an immediate denial-of-service condition.
Recommendations For Oniguruma version 6.2.0, update to a version that fixes the issue in left adjust char head() and forward search range(). For Oniguruma-mod in Ruby versions through 2.4.1, update Ruby to a version that includes the fix for the Oniguruma issue. For mbstring in PHP versions through 7.1.5, update PHP to a version that includes the fix for the mbstring issue. As a temporary workaround, consider restricting the use of regular expressions in affected applications until a patch is available.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
ALT-PU-2017-1820
ALT-PU-2017-1822
ALT-PU-2017-1855
CLSA-2026-1781529077
DLA-958-1
MGASA-2017-0246
RHSA-2018:1296
RHSA-2026:7545
SUSE-SU-2017:3237-1
SUSE-SU-2017:3277-1
SUSE-SU-2018:0003-1
SUSE-SU-2020:1570-1
SUSE-SU-2020_1570-1
USN-3382-1
USN-3382-2
Found an issue in the description? Have something to add? Feel free to write us 👾