cve.bz

CVE-2017-9225 Out-of-bounds Write

9.8 criticalExploit referenceEPSS 3.1%Fix available

Critical (9.8). EPSS 3.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.1% (unchanged from 3.1% a week ago; 3.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-9225 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-9225?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-9225?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-9225 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
oniguruma_project:oniguruma6.2.0
php:phpthrough 7.1.5
ruby-lang:rubythrough 2.4.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libonig6.1.3-2DEBIAN-CVE-2017-9225
Red Hathummingbird:1oniguruma, oniguruma-devel0:6.9.10-4.1.hum1RHSA-2026:7545

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Hardened Imagesoniguruma-main-6.9.10-4.1.hum1Fixed 2026-04-10RHSA-2026:7545
CloudForms Management Engine 5rh-ruby22-rubyUnder investigation
CloudForms Management Engine 5ruby-200-rubyUnder investigation
Red Hat Enterprise Linux 5phpNot affected
Red Hat Enterprise Linux 5php53Not affected
Red Hat Enterprise Linux 5rubyNot affected
Red Hat Enterprise Linux 6onigurumaNot affected
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 6rubyNot affected
Red Hat Enterprise Linux 7phpNot affected
Red Hat Enterprise Linux 7rubyNot affected
Red Hat OpenShift Enterprise 2phpNot affected
Red Hat Software Collectionsrh-php56-phpNot affected
Red Hat Software Collectionsrh-php70-phpNot affected
Red Hat Software Collectionsrh-ruby22-rubyNot affected
Red Hat Software Collectionsrh-ruby23-rubyNot affected
Red Hat Software Collectionsrh-ruby24-rubyNot affected
Red Hat Subscription Asset Managerruby193-rubyUnder investigation

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-9225.

References

Check your stackJSON