CVE-2017-9225

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
NISTNIST
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
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 59%
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
bullseye
6.9.6-1.1
fixed
jessie
not-affected
wheezy
not-affected
bookworm
6.9.8-1
fixed
sid
6.9.9-1
fixed
trixie
6.9.9-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libonig
bionic
Fixed 6.3.0-1
released
artful
ignored
zesty
ignored
yakkety
not-affected
xenial
not-affected
trusty
not-affected
php5
bionic
dne
artful
dne
zesty
dne
xenial
dne
trusty
not-affected
php7.0
bionic
dne
artful
dne
zesty
not-affected
xenial
not-affected
trusty
dne
php7.1
bionic
dne
artful
not-affected
zesty
dne
xenial
dne
trusty
dne