Back to CVE catalog
CVE-2017-9225

Stack out-of-bounds write in onigenc_unicode_get_case_fold_codes_by_str() in Oniguruma

Multiple products

At a glance

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 write in onigenc_unicode_get_case_fold_codes_by_str() occurs during regular expression compilation. Code point 0xFFFFFFFF is not properly handled in unicode_unfold_key(). A malformed regular expression could result in 4 bytes being written off the end of a stack buffer of expand_case_fold_string() during the call to onigenc_unicode_get_case_fold_codes_by_str(), a typical stack buffer overflow.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.0

9.8Critical
Published:
Updated:
EPSS:
3.08%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:Red HatCloudForms Management Engine 5Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Hardened ImagesAffected versions:Source does not specify a version range
Vendor:Red HatRed Hat Subscription Asset ManagerAffected versions:Source does not specify a version range
Vendor:phpphpAffected versions:
≤ 7.1.5Show full version range for php
  • CPE applicability can depend on other products or environments. Consult the full source configuration.
Vendor:ruby-langrubyAffected versions:
≤ 2.4.1Show full version range for ruby
  • CPE applicability can depend on other products or environments. Consult the full source configuration.
Vendor:oniguruma_projectonigurumaAffected versions:
6.2.0Show full version range for oniguruma
  • CPE applicability can depend on other products or environments. Consult the full source configuration.

1–6 of 6 · Page 1 of 1

CVSS scores and metrics4
[email protected] · NVD (Primary)Primary9.8 / 10CriticalCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE-2017-9225 · OSV (source-vector)9.8 / 10CriticalCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat · Red Hat VEX (adp)5.9 / 10MediumCVSS 3.0Details
Attack complexity
High
Confidentiality
None
Integrity
None
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
[email protected] · NVD (Primary)7.5 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories8

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences