{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2017-9225","published":"2017-05-24T15:29:00.230000Z","last_modified":"2026-06-17T01:27:42.607000Z","status":"Modified","cvss":{"version":"3.0","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/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:*:*:*:*:*:oniguruma-mod:*:*","part":"a","vendor":"php","product":"php","version_end_including":"7.1.5"},{"criteria":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:oniguruma-mod:*:*","part":"a","vendor":"ruby-lang","product":"ruby","version_end_including":"2.4.1"}],"cpes_truncated":false,"vendors":["oniguruma_project","php","ruby-lang"],"products":["oniguruma_project/oniguruma","php/php","ruby-lang/ruby"],"epss":{"score":0.0308,"percentile":0.88432,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2017-9225/","html_en":"/en/cve/CVE-2017-9225/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-9225","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-9225"},"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 stack out-of-bounds write in onigenc_unicode_get_case_fold_codes_by_str() occurs during regular expression compilation. Code point 0xFFFFFFFF is not properly handled in unicode_unfold_key(). A malformed regular expression could result in 4 bytes being written off the end of a stack buffer of expand_case_fold_string() during the call to onigenc_unicode_get_case_fold_codes_by_str(), a typical stack buffer overflow.","affected":[],"references":[{"url":"https://github.com/kkos/oniguruma/commit/166a6c3999bf06b4de0ab4ce6b088a468cc4029f","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/kkos/oniguruma/issues/56","tags":["Exploit","Third Party Advisory"]}]}}