{"id":"CVE-2017-9226","published":"2017-05-24T15:00:00Z","modified":"2024-08-05T17:02:44Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.07511,"percentile":0.94628,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/kkos/oniguruma/issues/55","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1296","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://github.com/kkos/oniguruma/commit/f015fbdd95f76438cd86366467bb2b39870dd7c6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kkos/oniguruma/commit/b4bf968ad52afe14e60a2dc8a95d3555c543353a","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/101244","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":18.93}]},"summary":{"text":"The flaw is a heap out-of-bounds read/write in Oniguruma 6.2.0, the regular expression library, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5, where octal escapes larger than 0xff are mishandled during regex compilation in next_state_val(), fetch_token() and fetch_token_in_cc().","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:56:43Z"},"euvd":{"id":"EUVD-2017-18164","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2017-9226-family-cve-2017-9226","children":[{"from":"CVE-2017-9226","to":"CVE-2017-9228","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/regparse.c"],"commits":["https://github.com/kkos/oniguruma/commit/f015fbdd95f76438cd86366467bb2b39870dd7c6","https://github.com/kkos/oniguruma/commit/b4bf968ad52afe14e60a2dc8a95d3555c543353a","https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b"],"basis":"rarely changed file"}]},{"from":"CVE-2017-9226","to":"CVE-2019-16163","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/regparse.c"],"commits":["https://github.com/kkos/oniguruma/commit/f015fbdd95f76438cd86366467bb2b39870dd7c6","https://github.com/kkos/oniguruma/commit/b4bf968ad52afe14e60a2dc8a95d3555c543353a","https://github.com/kkos/oniguruma/commit/4097828d7cc87589864fecf452f2cd46c5f37180"],"basis":"rarely changed file"}]}]}}