Oniguruma up to 6.2.0 Regular Expression onigenc_unicode_get_case_fold_codes_by_str out-of-bounds write

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.1$0-$5k0.00

Summaryinfo

A vulnerability has been found in Oniguruma up to 6.2.0 and classified as critical. Impacted is the function onigenc_unicode_get_case_fold_codes_by_str of the component Regular Expression. This manipulation causes out-of-bounds write. This vulnerability is registered as CVE-2017-9225. Remote exploitation of the attack is possible. No exploit is available. The affected component should be upgraded.

Detailsinfo

A vulnerability classified as critical was found in Oniguruma up to 6.2.0. Affected by this vulnerability is the function onigenc_unicode_get_case_fold_codes_by_str of the component Regular Expression. The manipulation with an unknown input leads to a out-of-bounds write vulnerability. The CWE definition for the vulnerability is CWE-787. The product writes data past the end, or before the beginning, of the intended buffer. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

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.

The bug was discovered 05/24/2017. The weakness was published 05/24/2017 (GitHub Repository). It is possible to read the advisory at github.com. This vulnerability is known as CVE-2017-9225 since 05/24/2017. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details of the vulnerability are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 100730 (Fedora 25 : oniguruma (2017-60997f0d14)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 276695 (Fedora Security Update for oniguruma (FEDORA-2017-60997f0d14)).

Upgrading eliminates this vulnerability. A possible mitigation has been published 3 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (100730). Similar entries are available at VDB-101754, VDB-101757, VDB-101758 and VDB-101759. Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Affected

  • Oniguruma up to 6.2.0
  • Oniguruma-mod in Ruby up to 2.4.1
  • PHP up to 7.1.5

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.5
VulDB Meta Temp Score: 8.1

VulDB Base Score: 7.3
VulDB Temp Score: 6.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 9.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Out-of-bounds write
CWE: CWE-787 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 100730
Nessus Name: Fedora 25 : oniguruma (2017-60997f0d14)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 867773
OpenVAS Name: Fedora Update for oniguruma FEDORA-2017-60997f0d14
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Patch: github.com

Timelineinfo

05/24/2017 🔍
05/24/2017 +0 days 🔍
05/24/2017 +0 days 🔍
05/24/2017 +0 days 🔍
05/25/2017 +1 days 🔍
06/10/2017 +16 days 🔍
06/12/2017 +2 days 🔍
12/07/2022 +2004 days 🔍

Sourcesinfo

Advisory: FEDORA-2017-60997f0d14
Status: Not defined
Confirmation: 🔍

CVE: CVE-2017-9225 (🔍)
GCVE (CVE): GCVE-0-2017-9225
GCVE (VulDB): GCVE-100-101755
OSVDB: - CVE-2017-9225 - Oniguruma - Out-of-Bounds Write Issue

See also: 🔍

Entryinfo

Created: 05/25/2017 09:49
Updated: 12/07/2022 11:20
Changes: 05/25/2017 09:49 (72), 10/02/2020 18:56 (5), 12/07/2022 11:13 (5), 12/07/2022 11:20 (1)
Complete: 🔍
Cache ID: 216:085:103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!