oniguruma: Out-of-bounds stack write in onigenc_unicode_get_case_fold_codes_by_str() during regular expression compilation
Published May 24, 2017
9.8
CRITICALCVSS 3.0
EPSS 3.08%
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 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.
Affected products
No data.
No data.
Red Hat Hardened Images
oniguruma-main-6.9.10-4.1.hum1
Fixed · RHSA-2026:7545
CloudForms Management Engine 5
rh-ruby22-ruby
Under investigation
CloudForms Management Engine 5
ruby-200-ruby
Under investigation
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 5
ruby
Not affected
Red Hat Enterprise Linux 6
oniguruma
Not affected
Red Hat Enterprise Linux 6
php
Not affected
Red Hat Enterprise Linux 6
ruby
Not affected
Red Hat Enterprise Linux 7
php
Not affected
Red Hat Enterprise Linux 7
ruby
Not affected
Red Hat OpenShift Enterprise 2
php
Not affected
Red Hat Software Collections
rh-php56-php
Not affected
Red Hat Software Collections
rh-php70-php
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
Not affected
Red Hat Subscription Asset Manager
ruby193-ruby
Under investigation
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Hardened Images | oniguruma-main-6.9.10-4.1.hum1 | Fixed | RHSA-2026:7545 |
| 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 | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 5 | ruby | Not affected | n/a |
| Red Hat Enterprise Linux 6 | oniguruma | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
| Red Hat Enterprise Linux 6 | ruby | Not affected | n/a |
| Red Hat Enterprise Linux 7 | php | Not affected | n/a |
| Red Hat Enterprise Linux 7 | ruby | Not affected | n/a |
| Red Hat OpenShift Enterprise 2 | php | Not affected | n/a |
| Red Hat Software Collections | rh-php56-php | Not affected | n/a |
| Red Hat Software Collections | rh-php70-php | 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 | Not affected | 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.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
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 v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (17 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.08% (0.03080) | 87.22th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.08% (0.03080) | 85.93th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.19% (0.00194) | 57.34th | v3 (v2023.03.01) |
| Apr 25, 2024 | 0.19% (0.00194) | 56.37th | v3 (v2023.03.01) |
| Mar 15, 2024 | 0.17% (0.00172) | 53.15th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.16% (0.00157) | 50.84th | v3 (v2023.03.01) |
| May 8, 2023 | 0.34% (0.00338) | 66.96th | v3 (v2023.03.01) |
| Mar 9, 2023 | 0.25% (0.00246) | 60.71th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.35% (0.00349) | 67.27th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.62% (0.00624) | 17.80th | v1 |
| Jan 6, 2022 | 0.62% (0.00624) | 17.24th | v1 |
| Sep 1, 2021 | 0.62% (0.00624) | 45.04th | v1 |
| Apr 14, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (6)
- https://access.redhat.com/security/cve/CVE-2017-9225 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1466733 Issue Tracking
- https://github.com/kkos/oniguruma/commit/166a6c3999bf06b4de0ab4ce6b088a468cc4029f x_refsource_CONFIRMPatchThird Party Advisory
- https://github.com/kkos/oniguruma/issues/56 x_refsource_CONFIRMExploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-9225
- https://www.cve.org/CVERecord?id=CVE-2017-9225
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2017-9225 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1466733 | Issue Tracking | |
| https://github.com/kkos/oniguruma/commit/166a6c3999bf06b4de0ab4ce6b088a468cc4029f | x_refsource_CONFIRMPatchThird Party Advisory | |
| https://github.com/kkos/oniguruma/issues/56 | x_refsource_CONFIRMExploitThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-9225 | ||
| https://www.cve.org/CVERecord?id=CVE-2017-9225 |
Change history (0)
No recorded changes yet.