CVE-2017-9227
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 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.
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-xmlrpc | Amazon Linux | 5.4.16-46.amzn2.0.5 |
| php-recode | Amazon Linux | 5.4.16-46.amzn2.0.5 |
| php-gd | Amazon Linux | 5.4.16-46.amzn2.0.5 |
| php-embedded | Amazon Linux | 5.4.16-46.amzn2.0.5 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | php-xmlrpc | 0 |
| amazon:2 | php-recode | 0 |
| amazon:2 | php-gd | 0 |
| amazon:2 | php-embedded | 0 |
| n/a | n/a | * |
| amazon:2 | php-dba | 0 |
| amazon:2 | php-common | 0 |
| amazon:2 | php-intl | 0 |
| amazon:2 | oniguruma-devel | 0 |
| amazon:2 | php | 0 |
| amazon:2 | php-mysqlnd | 0 |
| amazon:2 | php-fpm | 0 |
| alpine | php5 | 0 |
| amazon:2 | php-bcmath | 0 |
| amazon:2 | php-odbc | 0 |
| amazon:2 | oniguruma | 0 |
| amazon:2 | php-ldap | 0 |
| amazon:2 | php-devel | 0 |
| amazon:2 | php-snmp | 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-9227
vulnetix vdb fixes CVE-2017-9227
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-9227/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2018:1296 vendor-advisoryx_refsource_REDHAT
- 100538 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- x_refsource_CONFIRM