PT-2017-18794 · Oniguruma+5 · Oniguruma+6

Lxxxxfdho

·

Published

2017-05-24

·

Updated

2022-09-01

·

CVE-2017-9229

CVSS v3.1

7.5

High

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

Exploit

Fix

DoS

NULL Pointer Dereference

Weakness Enumeration

Related Identifiers

ALT-PU-2017-1820
ALT-PU-2017-1822
ALT-PU-2017-1855
CVE-2017-9229
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

Affected Products

Alt Linux
Oniguruma
Php
Ruby
Suse
Ubuntu
Mbstring