Oniguruma up to 6.2.0 Regular Expression next_state_val 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 was found in Oniguruma up to 6.2.0 and classified as critical. The affected element is the function next_state_val of the component Regular Expression. Such manipulation leads to out-of-bounds write. This vulnerability is documented as CVE-2017-9226. The attack can be executed remotely. There is not any exploit available. It is suggested to upgrade the affected component.

Detailsinfo

A vulnerability, which was classified as critical, has been found in Oniguruma up to 6.2.0. Affected by this issue is the function next_state_val of the component Regular Expression. The manipulation with an unknown input leads to a out-of-bounds write vulnerability. Using CWE to declare the problem leads to CWE-787. The product writes data past the end, or before the beginning, of the intended buffer. Impacted is confidentiality, integrity, and availability. CVE summarizes:

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 or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of '\700' would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption.

The bug was discovered 05/24/2017. The weakness was released 05/24/2017 (GitHub Repository). The advisory is shared for download at github.com. This vulnerability is handled as CVE-2017-9226 since 05/24/2017. The attack may be launched remotely. No form of authentication is required for exploitation. There are known technical details, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 100478 (Debian DLA-958-1 : libonig security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 170072 (SUSE Enterprise Linux Security Update for php53 (SUSE-SU-2017:1585-1)).

Upgrading eliminates this vulnerability. A possible mitigation has been published 4 days after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (100478) and SecurityFocus (BID 101244†). Entries connected to this vulnerability are available at VDB-99008, VDB-101754, VDB-101757 and VDB-101758. Once again VulDB remains the best source 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: 100478
Nessus Name: Debian DLA-958-1 : libonig security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 867773
OpenVAS Name: Fedora Update for oniguruma FEDORA-2017-e2d6d0067f
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/22/2017 🔍
05/24/2017 +2 days 🔍
05/24/2017 +0 days 🔍
05/24/2017 +0 days 🔍
05/24/2017 +0 days 🔍
05/25/2017 +1 days 🔍
05/28/2017 +3 days 🔍
05/30/2017 +2 days 🔍
12/07/2022 +2017 days 🔍

Sourcesinfo

Advisory: RHSA-2018:1296
Researcher: lxxxxfdh
Status: Not defined
Confirmation: 🔍

CVE: CVE-2017-9226 (🔍)
GCVE (CVE): GCVE-0-2017-9226
GCVE (VulDB): GCVE-100-101756
SecurityFocus: 101244 - Oniguruma Multiple Memory Corruption Vulnerabilities
OSVDB: - CVE-2017-9226 - Oniguruma - Memory Corruption Issue

See also: 🔍

Entryinfo

Created: 05/25/2017 09:50
Updated: 12/07/2022 11:27
Changes: 05/25/2017 09:50 (80), 10/02/2020 19:04 (1), 12/25/2020 15:23 (2), 12/07/2022 11:27 (4)
Complete: 🔍
Cache ID: 216:DFE:103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!