cve.bz

CVE-2017-9228 Out-of-bounds Write

9.8 criticalExploit referenceEPSS 6.3%Fix available

Critical (9.8). EPSS 6.3% 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 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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
6.3% (unchanged from 6.3% a week ago; 6.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th 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-9228 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-9228?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-9228?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-9228 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:phpfrom 5.6.0 before 5.6.31
php:phpfrom 7.0.0 before 7.0.21
php:phpfrom 7.1.0 before 7.1.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7libonig5.9.1-1+deb7u1DLA-958-1
Debian12, 13, 14libonig6.1.3-2DEBIAN-CVE-2017-9228
Ubuntu14.04:LTSlibonig5.9.1-1ubuntu1.1UBUNTU-CVE-2017-9228
Ubuntu14.04:LTSphp55.5.9+dfsg-1ubuntu4.22UBUNTU-CVE-2017-9228 USN-3382-1
Ubuntu16.04:LTSlibonig5.9.6-1ubuntu0.1UBUNTU-CVE-2017-9228
Ubuntu16.04:LTSphp7.07.0.22-0ubuntu0.16.04.1UBUNTU-CVE-2017-9228 USN-3382-1
Red Hatrhel_software_collections:3::el6rh-php70-php, rh-php70-php-gd, rh-php70-php-cli and 29 more0:7.0.27-1.el6RHSA-2018:1296
Red Hatrhel_software_collections:3::el7rh-php70-php, rh-php70-php-gd, rh-php70-php-cli and 27 more0:7.0.27-1.el7RHSA-2018:1296
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 moreruby2.12.1.9-19.3.2SUSE-SU-2020:1570-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP2, Linux Enterprise Software Development Kit 12 SP3php55.5.14-109.13.1SUSE-SU-2017:3277-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP2, Linux Enterprise Software Development Kit 12 SP3php77.0.7-50.23.1SUSE-SU-2017:3237-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4php535.3.17-112.10.1SUSE-SU-2018:0003-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 moreyast2-ruby-bindings3.1.53-9.8.1SUSE-SU-2020:1570-1
Alpinev3.4, v3.5, v3.6 and 2 morephp55.6.31-r0ALPINE-CVE-2017-9228
Alpinev3.5php77.0.21-r0ALPINE-CVE-2017-9228
Alpinev3.6php77.1.9-r0ALPINE-CVE-2017-9228
Alpinev3.7php77.1.7-r0ALPINE-CVE-2017-9228

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-php70-php-0:7.0.27-1.el6Fixed 2018-05-03RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-php70-php-0:7.0.27-1.el6Fixed 2018-05-03RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php70-php-0:7.0.27-1.el7Fixed 2018-05-03RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSrh-php70-php-0:7.0.27-1.el7Fixed 2018-05-03RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-php70-php-0:7.0.27-1.el7Fixed 2018-05-03RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-php70-php-0:7.0.27-1.el7Fixed 2018-05-03RHSA-2018:1296
CloudForms Management Engine 5rh-ruby22-rubyUnder investigation
CloudForms Management Engine 5ruby-200-rubyUnder investigation
Red Hat Enterprise Linux 5phpWill not fix
Red Hat Enterprise Linux 5php53Will not fix
Red Hat Enterprise Linux 5rubyWill not fix
Red Hat Enterprise Linux 6onigurumaWill not fix
Red Hat Enterprise Linux 6phpWill not fix
Red Hat Enterprise Linux 6rubyWill not fix
Red Hat Enterprise Linux 7phpWill not fix
Red Hat Enterprise Linux 7rubyWill not fix
Red Hat Software Collectionsrh-php56-phpWill not fix
Red Hat Software Collectionsrh-ruby22-rubyWill not fix
Red Hat Software Collectionsrh-ruby23-rubyWill not fix
Red Hat Software Collectionsrh-ruby24-rubyWill not fix
1 more in the JSON and on Red Hat's page.

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-9228.

References

Check your stackJSON