Skip to content
OpenAdvisories
Unscored CVE-2017-9228 EUVD-2017-18166GHSA-qc5j-7652-9f34

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 heap out-of…

Published May 24, 2017 · Updated Aug 5, 2024 · Assigned by mitre

Description

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 heap out-of-bounds write occurs in bitset_set_range() during regular expression compilation due to an uninitialized variable from an incorrect state transition. An incorrect state transition in parse_char_class() could create an execution path that leaves a critical local variable uninitialized until it's used as an index, resulting in an out-of-bounds write memory corruption.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libonig 6.1.3-2 —
Debian 13 libonig 6.1.3-2 —
Debian 12 libonig 6.1.3-2 —
Debian 7 libonig 5.9.1-1+deb7u1 DLA-958-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS libonig 5.9.6-1ubuntu0.1 —
Ubuntu 16.04 LTS php7.0 7.0.22-0ubuntu0.16.04.1 USN-3382-1
Ubuntu 14.04 LTS libonig 5.9.1-1ubuntu1.1 —
Ubuntu 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.22 USN-3382-1
ReleasePackageFixed inAdvisory
RHEL 3 rh-php70-php +29 7.0.27-1.el6 RHSA-2018:1296
ReleasePackageFixed inAdvisory
SLES 12 SP5 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP4 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP3 php5 5.5.14-109.13.1 SUSE-SU-2017:3277-1
SLES 12 SP3 php7 7.0.7-50.23.1 SUSE-SU-2017:3237-1
SLES 12 SP3 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP2 php5 5.5.14-109.13.1 SUSE-SU-2017:3277-1
SLES 12 SP2 php7 7.0.7-50.23.1 SUSE-SU-2017:3237-1
SLES 12 SP2 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP2 yast2-ruby-bindings 3.1.53-9.8.1 SUSE-SU-2020:1570-1
SLES 12 php5 5.5.14-109.13.1 SUSE-SU-2017:3277-1
SLES 12 php7 7.0.7-50.23.1 SUSE-SU-2017:3237-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 11 SP4 php53 5.3.17-112.10.1 SUSE-SU-2018:0003-1
SLES for SAP 12 SP5 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP4 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP3 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP2 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP2 yast2-ruby-bindings 3.1.53-9.8.1 SUSE-SU-2020:1570-1
SLES for SAP 11 SP4 php53 5.3.17-112.10.1 SUSE-SU-2018:0003-1
SUSE OpenStack Cloud Crowbar 8 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud 8 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud 7 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud 7 yast2-ruby-bindings 3.1.53-9.8.1 SUSE-SU-2020:1570-1
SUSE HPE Helion OpenStack 8 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE Enterprise Storage 5 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
ReleasePackageFixed inAdvisory
Alpine v3.8 php5 5.6.31-r0 —
Alpine v3.7 php5 5.6.31-r0 —
Alpine v3.7 php7 7.1.7-r0 —
Alpine v3.6 php5 5.6.31-r0 —
Alpine v3.6 php7 7.1.9-r0 —
Alpine v3.5 php5 5.6.31-r0 —
Alpine v3.5 php7 7.0.21-r0 —
Alpine v3.4 php5 5.6.31-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 oniguruma +1 5.9.6-1.amzn2.0.7 ALAS2-2023-2311
Amazon Linux 2 php +23 5.4.16-46.amzn2.0.3 ALAS2-2023-2375

Advisories 10

References