Am I affected?
CVE-2017-9225
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 write in onigenc_unicode_get_case_fold_codes_by_str() occurs during regular expression compilation. Code point 0xFFFFFFFF is not properly handled in unicode_unfold_key(). A malformed regular expression could result in 4 bytes being written off the end of a stack buffer of expand_case_fold_string() during the call to onigenc_unicode_get_case_fold_codes_by_str(), a typical stack buffer overflow.
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): 3.08% chance of exploitation activity in the next 30 days (top 12% 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 |
"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-12932 Critical 9.8 · PHP 7.1 · 2017-08-18
- CVE-2017-12933 Critical 9.8 · PHP 7.1 · 2017-08-18
- CVE-2017-11362 Critical 9.8 · PHP 7.1 · 2017-07-17
- CVE-2017-9224 Critical 9.8 · PHP 7.1 · 2017-05-24
- CVE-2017-9226 Critical 9.8 · PHP 7.1 · 2017-05-24
- CVE-2017-9227 Critical 9.8 · PHP 7.1 · 2017-05-24
Questions
- Which PHP versions are affected by CVE-2017-9225?
- NVD lists these affected ranges: PHP 7.1 only, before 7.1.5 (including that release).
- Which PHP version fixes CVE-2017-9225?
- NVD does not give an exact fixed release for CVE-2017-9225. Upgrade to the latest patch of a supported PHP branch and check the official advisory.
- Does a version check prove my server is safe from CVE-2017-9225?
- 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-9225 on NIST NVD. NVD data synced 2026-11-24T03:47:46.548Z. See all PHP CVEs in the CVE explorer.