{"id":"CVE-2017-9227","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 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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06265,"percentile":0.93736,"provenance":"source"},"cwes":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:1296","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/100538","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://github.com/kkos/oniguruma/issues/58","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":18.75}]},"summary":{"text":"The flaw is a stack out-of-bounds read in mbc_enc_len() during regular expression searching, affecting Oniguruma 6.2.0 as used in Oniguruma-mod in Ruby through 2.4.1 and in the mbstring extension in PHP through 7.1.5. It stems from invalid handling of reg->dmin in forward_search_range(), which can lead to an invalid pointer dereference reading from a stack buffer.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:02:43Z"},"euvd":{"id":"EUVD-2017-18165","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2017-9227-family-cve-2017-9227","children":[{"from":"CVE-2017-9227","to":"CVE-2017-9229","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/regexec.c"],"commits":["https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814","https://github.com/kkos/oniguruma/commit/b690371bbf97794b4a1d3f295d4fb9a8b05d402d"],"basis":"shared function","functions":["forward_search_range"]}]}]}}