CVE-2017-9228: 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.
CVE-2017-9228 affects 7 listed versions of PHP in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
PHP
7 of 250 listed versions are affected. Fixed in 7.0.21, 5.6.31. The newest release, 8.6.0, is not affected.
7.0.20 7.0.19 5.6.30 5.6.29 5.6.28 5.6.27 5.6.26
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by MITRE on 24 May 2017. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2017-9228 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.