CVE-2017-9228

CRITICAL
9.8
CVSS Score
Published: May 24, 2017 at 03:00 PM UTC
Updated: June 17, 2026 at 01:27 AM UTC
2 products affected across 2 vendorsPHPOniguruma

Using N/A by N/A?

Get instant alerts when new vulnerabilities affect N/A - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
CRITICAL9.8
Exploit prediction
EPSS 6%

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 heap out-of-bounds write occurs in bitset_set_range() during regular expression compilation due to an uninitialized variable from an incorrect state transition. An incorrect state transition in parse_char_class() could create an execution path that leaves a critical local variable uninitialized until it's used as an index, resulting in an out-of-bounds write memory corruption.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

PHP· PHPdrupal
95%
5.6.0 ≤ v < 5.6.317.0.0 ≤ v < 7.0.217.1.0 ≤ v < 7.1.7
Affected range stops below 5.6.31, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.0.21, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.1.7, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2018:1296
x_refsource_CONFIRMExploitIssue TrackingThird Party Advisory
https://github.com/kkos/oniguruma/issues/60

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card