Vulnerability Description
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 Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Oniguruma Project | Oniguruma | 6.2.0 |
| Php | Php | >= 5.6.0, < 5.6.31 |
Related Weaknesses (CWE)
References
- http://www.securityfocus.com/bid/100538Third Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:1296Third Party Advisory
- https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b881PatchThird Party Advisory
- https://github.com/kkos/oniguruma/issues/58ExploitIssue TrackingPatch
- http://www.securityfocus.com/bid/100538Third Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:1296Third Party Advisory
- https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b881PatchThird Party Advisory
- https://github.com/kkos/oniguruma/issues/58ExploitIssue TrackingPatch
FAQ
What is CVE-2017-9227?
CVE-2017-9227 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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 expressi...
How severe is CVE-2017-9227?
CVE-2017-9227 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2017-9227?
Check the references section above for vendor advisories and patch information. Affected products include: Oniguruma Project Oniguruma, Php Php.