CVE-2017-9226
Reported by mitre · Published May 24, 2017
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 or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of '\700' would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php-gd | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-snmp | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-cli | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-ldap | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-dba | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-fpm | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-mbstring | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| oniguruma-devel | Amazon Linux | 5.9.6-1.amzn2.0.7 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | php-gd | 0 |
| amazon:2 | php-snmp | 0 |
| amazon:2 | php-cli | 0 |
| amazon:2 | php-ldap | 0 |
| amazon:2 | php-dba | 0 |
| amazon:2 | php-fpm | 0 |
| amazon:2 | php-mbstring | 0 |
| amazon:2 | oniguruma-devel | 0 |
| n/a | n/a | * |
| amazon:2 | php-intl | 0 |
| amazon:2 | php-recode | 0 |
| amazon:2 | php-devel | 0 |
| amazon:2 | php-pgsql | 0 |
| amazon:2 | php-process | 0 |
| amazon:2 | php-xmlrpc | 0 |
| alpine | php7 | 0, 0, 0 |
| amazon:2 | php-pdo | 0 |
| amazon:2 | php-bcmath | 0 |
| alpine | php5 | 0 |
…and 10 more
Timeline
- May 24, 2017 CVE Published
- Oct 14, 2019 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (5 in total, the first dated here)
- Mar 6, 2026 Security Advisory (4 in total, the first dated here)
- Sep 27, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-9226
vulnetix vdb fixes CVE-2017-9226
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-9226/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- RHSA-2018:1296 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- 101244 vdb-entryx_refsource_BID