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.
{
"cpe": "cpe:2.3:a:oniguruma_project:oniguruma:6.2.0:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "6.2.0"
},
{
"last_affected": "6.2.0"
}
],
"source": [
"CPE_STRING",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-9227.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "107256506076362528630293821856860722664",
"length": 3055
},
"id": "CVE-2017-9227-87db20c4",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814",
"target": {
"file": "src/regexec.c",
"function": "forward_search_range"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"244917375269462939977115246385469839147",
"260813193810532824259245784304712775384",
"120231572746728307893137213880243448934",
"118234623326047463135166462558158684412"
],
"threshold": 0.9
},
"id": "CVE-2017-9227-ce1115bb",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814",
"target": {
"file": "src/regexec.c"
}
}
]
"2026-08-07T14:53:47Z"
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "5.6.0"
},
{
"fixed": "5.6.31"
},
{
"introduced": "7.0.0"
},
{
"fixed": "7.0.21"
},
{
"introduced": "7.1.0"
},
{
"fixed": "7.1.7"
}
],
"source": "CPE_RANGE"
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-9227.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "233037532068098537505988791132617368492",
"length": 13872
},
"id": "CVE-2017-9227-343f4c1a",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/php/php-src/commit/73915a2bd61f21fd809b4d50af9aba950f43e807",
"target": {
"file": "ext/pcre/pcrelib/pcre_jit_compile.c",
"function": "compile_bracket_matchingpath"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"41612049881914751775057704412356952022",
"206133687184829194312361432760839012982",
"60469889591596012334583203454317370370",
"317056786488417399517652373716894105276"
],
"threshold": 0.9
},
"id": "CVE-2017-9227-cfd9dfdb",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/php/php-src/commit/73915a2bd61f21fd809b4d50af9aba950f43e807",
"target": {
"file": "ext/pcre/pcrelib/pcre_jit_compile.c"
}
}
]
"2026-08-07T14:53:47Z"