CVE-2017-9228: Critical severity PHP PHP vulnerability

Published May 23, 2017
·
Updated

Add oniguruma upstream fix (CVE-2017-9224, CVE-2017-9226, CVE-2017-9227, CVE-2017-9228, CVE-2017-9229)

Other sources

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 bitsetsetrange() during regular expression compilation due to an uninitialized variable from an incorrect state transition. An incorrect state transition in parsecharclass() 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. Upstream bug:

https://github.com/kkos/oniguruma/issues/60

Upstream patch:

https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b

Red Hat

Affected Software

12 affected componentsFixes available
redhat/rh-php70-php<0:7.0.27-1.el6
0:7.0.27-1.el6
redhat/rh-php70-php<0:7.0.27-1.el7
0:7.0.27-1.el7
redhat/oniguruma<6.3.0
6.3.0
redhat/php<5.6.31
5.6.31
redhat/php<7.0.21
7.0.21
redhat/php<7.1.7
7.1.7
debian/libonig
6.9.6-1.16.9.8-16.9.9-1
PHP PHP<7.0.21
7.0.21
Oniguruma Project Oniguruma=6.2.0
PHP PHP>=5.6.0<5.6.31
PHP PHP>=7.0.0<7.0.21
PHP PHP>=7.1.0<7.1.7

Event History

May 23, 2017
CVE Published
12:00 AM
May 24, 2017
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·10:42 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:23 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2017-9228?

CVE-2017-9228 is a vulnerability in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5.

2

How severe is CVE-2017-9228?

CVE-2017-9228 has a severity rating of 9.8 (critical).

3

What is the impact of CVE-2017-9228?

CVE-2017-9228 allows for a heap out-of-bounds write during regular expression compilation, which can lead to code execution or denial of service.

4

How can I fix CVE-2017-9228?

To fix CVE-2017-9228, update Oniguruma to version 6.3.0 or higher.

5

Where can I find more information about CVE-2017-9228?

You can find more information about CVE-2017-9228 at the following references: [1](https://github.com/kkos/oniguruma/issues/60), [2](https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b), [3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1466750).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203