{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2017-9226","published":"2017-05-24T15:29:00.277000Z","last_modified":"2026-06-17T01:27:42.727000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-787"],"cpes":[{"criteria":"cpe:2.3:a:oniguruma_project:oniguruma:6.2.0:*:*:*:*:*:*:*","part":"a","vendor":"oniguruma_project","product":"oniguruma","version":"6.2.0"},{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_end_excluding":"5.6.31"},{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_start_including":"7.0.0","version_end_excluding":"7.0.21"},{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_start_including":"7.1.0","version_end_excluding":"7.1.7"}],"cpes_truncated":false,"vendors":["oniguruma_project","php"],"products":["oniguruma_project/oniguruma","php/php"],"epss":{"score":0.07511,"percentile":0.95253,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":75,"links":{"html_es":"/es/cve/CVE-2017-9226/","html_en":"/en/cve/CVE-2017-9226/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-9226","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-9226"},"untrusted":{"vendor_name":"Oniguruma Project","product_name":"Oniguruma","desc_en":"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.","affected":[],"references":[{"url":"http://www.securityfocus.com/bid/101244","tags":["Third Party Advisory","VDB Entry"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1296","tags":["Third Party Advisory"]},{"url":"https://github.com/kkos/oniguruma/commit/b4bf968ad52afe14e60a2dc8a95d3555c543353a","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/kkos/oniguruma/commit/f015fbdd95f76438cd86366467bb2b39870dd7c6","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/kkos/oniguruma/issues/55","tags":["Exploit","Issue Tracking","Third Party Advisory"]}]}}