oniguruma: Out-of-bounds heap write in bitset_set_range()
Published May 24, 2017
9.8
CRITICALCVSS 3.1
EPSS 6.26%
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 products
No data.
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php70-php-0:7.0.27-1.el6
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php70-php-0:7.0.27-1.el6
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
CloudForms Management Engine 5
rh-ruby22-ruby
Under investigation
CloudForms Management Engine 5
ruby-200-ruby
Under investigation
Red Hat Enterprise Linux 5
php
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 5
ruby
Will not fix
Red Hat Enterprise Linux 6
oniguruma
Will not fix
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Enterprise Linux 6
ruby
Will not fix
Red Hat Enterprise Linux 7
php
Will not fix
Red Hat Enterprise Linux 7
ruby
Will not fix
Red Hat Software Collections
rh-php56-php
Will not fix
Red Hat Software Collections
rh-ruby22-ruby
Will not fix
Red Hat Software Collections
rh-ruby23-ruby
Will not fix
Red Hat Software Collections
rh-ruby24-ruby
Will not fix
Red Hat Subscription Asset Manager
ruby193-ruby
Under investigation
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php70-php-0:7.0.27-1.el6 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php70-php-0:7.0.27-1.el6 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| CloudForms Management Engine 5 | rh-ruby22-ruby | Under investigation | n/a |
| CloudForms Management Engine 5 | ruby-200-ruby | Under investigation | n/a |
| Red Hat Enterprise Linux 5 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | ruby | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | oniguruma | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | ruby | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | ruby | Will not fix | n/a |
| Red Hat Software Collections | rh-php56-php | Will not fix | n/a |
| Red Hat Software Collections | rh-ruby22-ruby | Will not fix | n/a |
| Red Hat Software Collections | rh-ruby23-ruby | Will not fix | n/a |
| Red Hat Software Collections | rh-ruby24-ruby | Will not fix | n/a |
| Red Hat Subscription Asset Manager | ruby193-ruby | Under investigation | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (20 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.26% (0.06261) | 93.36th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.26% (0.06261) | 92.64th | v5 (v2026.06.15) |
| Nov 21, 2025 | 0.88% (0.00875) | 74.56th | v4 (v2025.03.14) |
| Nov 18, 2025 | 2.58% (0.02577) | 84.25th | v4 (v2025.03.14) |
| Mar 30, 2025 | 0.47% (0.00474) | 61.90th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.43% (0.03425) | 78.92th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.81% (0.00811) | 81.94th | v3 (v2023.03.01) |
| Feb 28, 2024 | 0.81% (0.00811) | 81.26th | v3 (v2023.03.01) |
| May 8, 2023 | 0.81% (0.00811) | 79.25th | v3 (v2023.03.01) |
| May 4, 2023 | 0.59% (0.00591) | 75.11th | v3 (v2023.03.01) |
| Mar 9, 2023 | 0.60% (0.00600) | 75.14th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.85% (0.00849) | 79.63th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.58% (0.02578) | 82.08th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.58% (0.02578) | 80.28th | v2 (v2022.01.01) |
| Feb 18, 2022 | 2.58% (0.02578) | 62.16th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.51% (0.02509) | 58.60th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.19% (0.01193) | 29.90th | v1 |
| Jan 6, 2022 | 1.19% (0.01193) | 29.26th | v1 |
| Sep 1, 2021 | 1.19% (0.01193) | 67.15th | v1 |
| Apr 14, 2021 | 1.19% (0.01193) | 0.00th | v1 |
References (7)
- https://access.redhat.com/errata/RHSA-2018:1296 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-9228 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1466740 Issue Tracking
- https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b x_refsource_CONFIRMPatchThird Party Advisory
- https://github.com/kkos/oniguruma/issues/60 x_refsource_CONFIRMExploitIssue TrackingThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-9228
- https://www.cve.org/CVERecord?id=CVE-2017-9228
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2018:1296 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2017-9228 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1466740 | Issue Tracking | |
| https://github.com/kkos/oniguruma/commit/3b63d12038c8d8fc278e81c942fa9bec7c704c8b | x_refsource_CONFIRMPatchThird Party Advisory | |
| https://github.com/kkos/oniguruma/issues/60 | x_refsource_CONFIRMExploitIssue TrackingThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-9228 | ||
| https://www.cve.org/CVERecord?id=CVE-2017-9228 |
Change history (0)
No recorded changes yet.