9.8
CRITICAL
CVE-2017-9228
Apache Oniguruma Heap Buffer Overflow Vulnerability
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.

INFO

Published Date :

May 24, 2017, 3:29 p.m.

Last Modified :

July 20, 2022, 4:34 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2017-9228 has a 4 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2017-9228 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Php php
1 Oniguruma_project oniguruma
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2017-9228.

URL Resource
https://access.redhat.com/errata/RHSA-2018:1296 Third Party Advisory
https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b Patch Third Party Advisory
https://github.com/kkos/oniguruma/issues/60 Exploit Issue Tracking Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

CMake Makefile Shell M4 C Python C++ HTML Batchfile

Updated: 2 years ago
0 stars 0 fork 0 watcher
Born at : Nov. 14, 2022, 7:22 p.m. This repo has been linked 13 different CVEs too.

Map Vulnerabilities into Different Layers of the Container Image

Python

Updated: 1 year, 10 months ago
1 stars 0 fork 0 watcher
Born at : Oct. 5, 2022, 12:07 p.m. This repo has been linked 1276 different CVEs too.

Esy-enabled build for the onigurama regex library

Makefile Shell C HTML CMake M4 C++ Python Batchfile

Updated: 2 years, 1 month ago
2 stars 3 fork 3 watcher
Born at : Aug. 17, 2019, 9:46 p.m. This repo has been linked 13 different CVEs too.

None

CMake Makefile Shell M4 C++ HTML Batchfile C Python

Updated: 6 years ago
0 stars 0 fork 0 watcher
Born at : Nov. 19, 2018, 3:49 p.m. This repo has been linked 6 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2017-9228 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2017-9228 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Jul. 20, 2022

    Action Type Old Value New Value
    Removed CVSS V3 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://access.redhat.com/errata/RHSA-2018:1296 No Types Assigned https://access.redhat.com/errata/RHSA-2018:1296 Third Party Advisory
    Changed Reference Type https://github.com/kkos/oniguruma/issues/60 Exploit, Third Party Advisory https://github.com/kkos/oniguruma/issues/60 Exploit, Issue Tracking, Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:php:php:*:*:*:*:*:oniguruma-mod:*:* versions up to (including) 7.1.5 *cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:oniguruma-mod:*:* versions up to (including) 2.4.1 OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 5.6.0 up to (excluding) 5.6.31 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 7.0.0 up to (excluding) 7.0.21 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 7.1.0 up to (excluding) 7.1.7
  • CVE Modified by [email protected]

    May. 04, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2018:1296 [No Types Assigned]
  • Initial Analysis by [email protected]

    Jun. 02, 2017

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/kkos/oniguruma/issues/60 No Types Assigned https://github.com/kkos/oniguruma/issues/60 Exploit, Third Party Advisory
    Changed Reference Type https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b No Types Assigned https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b Patch, Third Party Advisory
    Added CWE CWE-787
    Added CPE Configuration OR *cpe:2.3:a:oniguruma_project:oniguruma:6.2.0:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:a:php:php:7.1.5:*:*:*:*:oniguruma-mod:*:* (and previous) *cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:oniguruma-mod:*:* (and previous)
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2017-9228 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2017-9228 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.81 }} 0.22%

score

0.79254

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability