CVE-2017-9225

EUVD-2017-18163
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 stack out-of-bounds write in onigenc_unicode_get_case_fold_codes_by_str() occurs during regular expression compilation. Code point 0xFFFFFFFF is not properly handled in unicode_unfold_key(). A malformed regular expression could result in 4 bytes being written off the end of a stack buffer of expand_case_fold_string() during the call to onigenc_unicode_get_case_fold_codes_by_str(), a typical stack buffer overflow.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 51%
Affected Products (NVD)
VendorProductVersion
oniguruma_projectoniguruma
6.2.0
phpphp
𝑥
≤ 7.1.5
ruby-langruby
𝑥
≤ 2.4.1
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
libonig
bookworm
6.9.8-1
fixed
bullseye
6.9.6-1.1
fixed
jessie
not-affected
sid
6.9.9-1
fixed
trixie
6.9.9-1
fixed
wheezy
not-affected
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libonig
artful
ignored
bionic
Fixed 6.3.0-1
released
trusty
not-affected
xenial
not-affected
yakkety
not-affected
zesty
ignored
php5
artful
dne
bionic
dne
trusty
not-affected
xenial
dne
zesty
dne
php7.0
artful
dne
bionic
dne
trusty
dne
xenial
not-affected
zesty
not-affected
php7.1
artful
not-affected
bionic
dne
trusty
dne
xenial
dne
zesty
dne