Am I affected?
CVE-2017-9229
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 SIGSEGV occurs in left_adjust_char_head() during regular expression compilation. Invalid handling of reg->dmax in forward_search_range() could result in an invalid pointer dereference, normally as an immediate denial-of-service condition.
Not in the CISA KEV catalog as of the last sync. That means no confirmed exploitation is listed there, not that it is safe.
Exploit probability (FIRST EPSS): 5.13% chance of exploitation activity in the next 30 days (top 8% of all scored CVEs), scored 2026-11-23. EPSS is a likelihood estimate, not proof of attacks.
Check your PHP version
Fixed versions by branch
| Branch | Affected (NVD) | Fixed in |
|---|---|---|
| PHP 7.1 | PHP 7.1 only, before 7.1.5 (including that release) | not stated |
| PHP 7.1 | 7.1.0 (including) to 7.1.7 (excluding) | 7.1.7 |
| PHP 7.0 | 7.0.0 (including) to 7.0.21 (excluding) | 7.0.21 |
| PHP 5.6 | 5.6.0 (including) to 5.6.31 (excluding) | 5.6.31 |
"Fixed in" is shown only when the source gives an exact upper bound. Any later patch in the same branch also has the fix. Linux distributions (Ubuntu, Debian, RHEL) often backport fixes without changing the PHP version number.
Related CVEs
Other PHP CVEs that NVD lists for the same branches.
- CVE-2017-12933 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-08-18
- CVE-2017-9224 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-05-24
- CVE-2017-9226 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-05-24
- CVE-2017-9227 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-05-24
- CVE-2017-9228 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-05-24
- CVE-2016-10160 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-01-24
Questions
- Which PHP versions are affected by CVE-2017-9229?
- NVD lists these affected ranges: PHP 7.1 only, before 7.1.5 (including that release); 7.1.0 (including) to 7.1.7 (excluding); 7.0.0 (including) to 7.0.21 (excluding); 5.6.0 (including) to 5.6.31 (excluding).
- Which PHP version fixes CVE-2017-9229?
- According to NVD, the fix is in PHP 7.1.7, 7.0.21, 5.6.31 (upgrade to that release or any later patch in the same branch).
- Does a version check prove my server is safe from CVE-2017-9229?
- No. The SAPI, web server, operating system, loaded extensions and configuration change whether a bug can be reached, and Linux distributions often backport fixes without changing the upstream version number.
Sources: CVE-2017-9229 on NIST NVD. NVD data synced 2026-11-24T03:47:46.548Z. See all PHP CVEs in the CVE explorer.