ruby: Stack overflow in parse_char_class() in Onigmo
Published Apr 3, 2017
7.5
HIGHCVSS 3.0
EPSS 3.65%
Description
The parse_char_class function in regparse.c in the Onigmo (aka Oniguruma-mod) regular expression library, as used in Ruby 2.4.0, allows remote attackers to cause a denial of service (deep recursion and application crash) via a crafted regular expression.
Affected products
No data.
No data.
CloudForms Management Engine 5
rh-ruby22-ruby
Not affected
CloudForms Management Engine 5
ruby-200-ruby
Not affected
Red Hat Enterprise Linux 5
ruby
Not affected
Red Hat Enterprise Linux 6
ruby
Not affected
Red Hat Enterprise Linux 7
ruby
Not affected
Red Hat Software Collections
rh-ruby22-ruby
Not affected
Red Hat Software Collections
rh-ruby23-ruby
Not affected
Red Hat Software Collections
rh-ruby24-ruby
Will not fix
Red Hat Subscription Asset Manager
ruby193-ruby
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms Management Engine 5 | rh-ruby22-ruby | Not affected | n/a |
| CloudForms Management Engine 5 | ruby-200-ruby | Not affected | n/a |
| Red Hat Enterprise Linux 5 | ruby | Not affected | n/a |
| Red Hat Enterprise Linux 6 | ruby | Not affected | n/a |
| Red Hat Enterprise Linux 7 | ruby | Not affected | n/a |
| Red Hat Software Collections | rh-ruby22-ruby | Not affected | n/a |
| Red Hat Software Collections | rh-ruby23-ruby | Not affected | n/a |
| Red Hat Software Collections | rh-ruby24-ruby | Will not fix | n/a |
| Red Hat Subscription Asset Manager | ruby193-ruby | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
AV:N/AC:L/Au:N/C:N/I:N/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 v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.65% (0.03647) | 89.23th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.65% (0.03647) | 88.11th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.39% (0.00389) | 73.51th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.39% (0.00389) | 72.56th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.39% (0.00389) | 69.07th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.14% (0.01136) | 59.45th | v2 (v2022.01.01) |
| Oct 18, 2022 | 1.14% (0.01136) | 58.28th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.14% (0.01136) | 56.27th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.14% (0.01136) | 34.23th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.30% (0.01300) | 31.12th | v1 |
| Jan 6, 2022 | 1.30% (0.01300) | 30.48th | v1 |
| Sep 1, 2021 | 1.30% (0.01300) | 69.44th | v1 |
| Apr 14, 2021 | 1.30% (0.01300) | 0.00th | v1 |
References (7)
- http://www.securityfocus.com/bid/97304 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2017-6181 Vendor Advisory
- https://bugs.ruby-lang.org/issues/13234 x_refsource_CONFIRMIssue TrackingVendor Advisory
- https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/57660 x_refsource_CONFIRMIssue TrackingVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1443435 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2017-6181
- https://www.cve.org/CVERecord?id=CVE-2017-6181
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/97304 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2017-6181 | Vendor Advisory | |
| https://bugs.ruby-lang.org/issues/13234 | x_refsource_CONFIRMIssue TrackingVendor Advisory | |
| https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/57660 | x_refsource_CONFIRMIssue TrackingVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1443435 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-6181 | ||
| https://www.cve.org/CVERecord?id=CVE-2017-6181 |
Change history (0)
No recorded changes yet.