CVE-2017-9229: 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.
High CVSS 7.5
- CVE id
- CVE-2017-9229
- Published
- Last modified
Affected packages
How to fix it
PHP (Runtimes and servers)
Upgrade PHP to the fixed release of the line you run: 5.6.31, 7.0.21, 7.1.7.
php --version
- Install the patched PHP release of your minor line (the php image tag or your OS packages) and restart PHP-FPM.
Ruby (Runtimes and servers)
Upgrade Ruby to a release newer than 2.4.1.
ruby --version
- Install the patched Ruby release of your minor line (rbenv, the ruby image tag) and update .ruby-version.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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 SIGSEGV occurs in leftadjustcharhead() during regular expression compilation. Invalid handling of reg->dmax in forwardsearch_range() could result in an invalid pointer dereference, normally as an immediate denial-of-service condition.
References
- CVE-2017-9229 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2017-9229
- Web: https://access.redhat.com/errata/RHSA-2018:1296
- Web: https://github.com/kkos/oniguruma/commit/b690371bbf97794b4a1d3f295d4fb9a8b05d402d
- Web: https://github.com/kkos/oniguruma/issues/59
- Web: https://access.redhat.com/errata/RHSA-2018:1296
- Web: https://github.com/kkos/oniguruma/commit/b690371bbf97794b4a1d3f295d4fb9a8b05d402d
- Web: https://github.com/kkos/oniguruma/issues/59
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.