CVEfocus › CVE database › CVE-2017-9225

CVE-2017-9225

CVSS 9.8 CriticalEPSS 3.1% (higher than 88% of CVEs)Published 2017-05-24Updated 2024-09-17Assigner: mitre

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.

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
83Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04libonigNot affected
vulnerable_code_not_present
Ubuntu 16.04php7.0Not affected
vulnerable_code_not_present
Debian 14libonigFixed6.1.3-2DEBIAN-CVE-2017-9225
Debian 13libonigFixed6.1.3-2DEBIAN-CVE-2017-9225
Debian 12libonigFixed6.1.3-2DEBIAN-CVE-2017-9225
Red Hat Enterprise Linux 7phpNot affected
Red Hat Enterprise Linux 7php-bcmathNot affected
Red Hat Enterprise Linux 7php-cliNot affected
Red Hat Enterprise Linux 7php-commonNot affected
Red Hat Enterprise Linux 7php-dbaNot affected
Red Hat Enterprise Linux 7php-develNot affected
Red Hat Enterprise Linux 7php-embeddedNot affected
Red Hat Enterprise Linux 7php-enchantNot affected
Red Hat Enterprise Linux 7php-fpmNot affected
Red Hat Enterprise Linux 7php-gdNot affected
Red Hat Enterprise Linux 7php-intlNot affected
Red Hat Enterprise Linux 7php-ldapNot affected
Red Hat Enterprise Linux 7php-mbstringNot affected
Red Hat Enterprise Linux 7php-mysqlNot affected
Red Hat Enterprise Linux 7php-mysqlndNot affected
Red Hat Enterprise Linux 7php-odbcNot affected
Red Hat Enterprise Linux 7php-pdoNot affected
Red Hat Enterprise Linux 7php-pgsqlNot affected
Red Hat Enterprise Linux 7php-processNot affected
Red Hat Enterprise Linux 7php-pspellNot affected
Red Hat Enterprise Linux 7php-recodeNot affected
Red Hat Enterprise Linux 7php-snmpNot affected
Red Hat Enterprise Linux 7php-soapNot affected
Red Hat Enterprise Linux 7php-xmlNot affected
Red Hat Enterprise Linux 7php-xmlrpcNot affected
Red Hat Enterprise Linux 7rubyNot affected
Red Hat Enterprise Linux 7ruby-develNot affected
Red Hat Enterprise Linux 7ruby-docNot affected
Red Hat Enterprise Linux 7ruby-irbNot affected
Red Hat Enterprise Linux 7ruby-libsNot affected
Red Hat Enterprise Linux 7ruby-tcltkNot affected
Red Hat Enterprise Linux 7rubygem-bigdecimalNot affected
Red Hat Enterprise Linux 7rubygem-io-consoleNot affected
Red Hat Enterprise Linux 7rubygem-jsonNot affected
Red Hat Enterprise Linux 7rubygem-minitestNot affected
Red Hat Enterprise Linux 7rubygem-psychNot affected
Red Hat Enterprise Linux 7rubygem-rakeNot affected
Red Hat Enterprise Linux 7rubygem-rdocNot affected
Red Hat Enterprise Linux 7rubygemsNot affected
Red Hat Enterprise Linux 7rubygems-develNot affected
Red Hat Enterprise Linux 6onigurumaNot affected
Red Hat Enterprise Linux 6oniguruma-develNot affected
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 6php-bcmathNot affected
Red Hat Enterprise Linux 6php-cliNot affected
Red Hat Enterprise Linux 6php-commonNot affected
Red Hat Enterprise Linux 6php-dbaNot affected
Red Hat Enterprise Linux 6php-develNot affected
Red Hat Enterprise Linux 6php-embeddedNot affected
Red Hat Enterprise Linux 6php-enchantNot affected
Red Hat Enterprise Linux 6php-fpmNot affected
Red Hat Enterprise Linux 6php-gdNot affected
Red Hat Enterprise Linux 6php-imapNot affected
Red Hat Enterprise Linux 6php-intlNot affected
Red Hat Enterprise Linux 6php-ldapNot affected
Red Hat Enterprise Linux 6php-mbstringNot affected
Red Hat Enterprise Linux 6php-mysqlNot affected
Red Hat Enterprise Linux 6php-odbcNot affected
Red Hat Enterprise Linux 6php-pdoNot affected
Red Hat Enterprise Linux 6php-pgsqlNot affected
Red Hat Enterprise Linux 6php-processNot affected
Red Hat Enterprise Linux 6php-pspellNot affected
Red Hat Enterprise Linux 6php-recodeNot affected
Red Hat Enterprise Linux 6php-snmpNot affected
Red Hat Enterprise Linux 6php-soapNot affected
Red Hat Enterprise Linux 6php-tidyNot affected
Red Hat Enterprise Linux 6php-xmlNot affected
Red Hat Enterprise Linux 6php-xmlrpcNot affected
Red Hat Enterprise Linux 6php-ztsNot affected
Red Hat Enterprise Linux 6rubyNot affected
Red Hat Enterprise Linux 6ruby-develNot affected
Red Hat Enterprise Linux 6ruby-docsNot affected
Red Hat Enterprise Linux 6ruby-irbNot affected
Red Hat Enterprise Linux 6ruby-libsNot affected
Red Hat Enterprise Linux 6ruby-rdocNot affected
Red Hat Enterprise Linux 6ruby-riNot affected
Red Hat Enterprise Linux 6ruby-staticNot affected
Red Hat Enterprise Linux 6ruby-tcltkNot affected
Red Hat Enterprise Linux 5phpNot affected
Red Hat Enterprise Linux 5php53Not affected
Red Hat Enterprise Linux 5rubyNot affected

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.