CVE-2017-9227: 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-9227 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 stack out-of-bounds read occurs in mbc_enc_len() during regular expression searching. Invalid handling of reg->dmin in forward_search_range() could result in an invalid pointer dereference, as an out-of-bounds read from a stack buffer.
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-9227 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.