CVE-2017-9227

CRITICAL

Oniguruma 6.2.0 - Memory Corruption

Title source: llm
STIX 2.1

Description

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.

References (4)

Core 4
Core References
Third Party Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:1296
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/100538
Exploit, Issue Tracking, Patch, Third Party Advisory x_refsource_confirm
https://github.com/kkos/oniguruma/issues/58

Scores

CVSS v3 9.8
EPSS 0.0046
EPSS Percentile 64.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-125
Status published
Products (2)
oniguruma_project/oniguruma 6.2.0
php/php 5.6.0 - 5.6.31
Published May 24, 2017
Tracked Since Feb 18, 2026