Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2017-9227

oniguruma: Out-of-bounds stack read in mbc_enc_len() during regular expression searching

Overview

Published
24 May 2017
Modified
17 Jun 2026
Critical CVE
0 Registry packages
70 OS packages
3 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-125

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 7 fixes

Red Hat 1 release · 2 packages

wont fix 1 fixed 1
php rh-php70-php
Red Hat fixes for CVE-2017-9227
ReleasePackageFixed inAdvisory
7 php +39 wont fix —
7 rh-php70-php +28 0:7.0.27-1.el7 RHSA-2018:1296

debian 4 releases · 1 package

fixed 4
libonig
debian fixes for CVE-2017-9227
ReleasePackageFixed in
11 libonig 6.1.3-2
12 libonig 6.1.3-2
13 libonig 6.1.3-2
14 libonig 6.1.3-2

echo 1 release · 1 package

fixed 1
libonig
echo fixes for CVE-2017-9227
ReleasePackageFixed in
libonig 6.1.3-2

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.