CVE-2017-9226 Details
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 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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2018:1296 | CVE | Third Party Advisory |
| https://github.com/kkos/oniguruma/commit/b4bf968ad52afe14e60a2dc8a95d3555c543353a | CVE | PatchThird Party Advisory |
| https://github.com/kkos/oniguruma/commit/f015fbdd95f76438cd86366467bb2b39870dd7c6 | CVE | PatchThird Party Advisory |
| https://github.com/kkos/oniguruma/issues/55 | CVE | ExploitIssue TrackingThird Party Advisory |
| http://www.securityfocus.com/bid/101244 | CVE | Third Party AdvisoryVDB Entry |
| https://access.redhat.com/errata/RHSA-2018:1296 | [email protected] | Third Party Advisory |
| https://github.com/kkos/oniguruma/commit/b4bf968ad52afe14e60a2dc8a95d3555c543353a | [email protected] | PatchThird Party Advisory |
| https://github.com/kkos/oniguruma/commit/f015fbdd95f76438cd86366467bb2b39870dd7c6 | [email protected] | PatchThird Party Advisory |
| https://github.com/kkos/oniguruma/issues/55 | [email protected] | ExploitIssue TrackingThird Party Advisory |
| http://www.securityfocus.com/bid/101244 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| oniguruma project oniguruma | 6.2.0 |
CPE
Remediation
| |
| php php | < 5.6.31 >= 7.0.0, < 7.0.21 >= 7.1.0, < 7.1.7 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| May 13, 2026 | CVE Status Change | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jul 20, 2022 | Modified Analysis | [email protected] |
| Oct 31, 2018 | CVE Modified | [email protected] |
| May 4, 2018 | CVE Modified | [email protected] |
| Jun 2, 2017 | Initial Analysis | [email protected] |