CVE-2017-9227
oniguruma: Out-of-bounds stack read in mbc_enc_len() during regular expression searching
Overview
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 read occurs in mbc_enc_len() during regular expression searching. Invalid handling of reg->dmin in forward_search_range() could result in an invalid pointer dereference, as an out-of-bounds read from a stack buffer.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-125
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 7 fixes
Red Hat 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | php +39 | wont fix | — |
| 7 | rh-php70-php +28 | 0:7.0.27-1.el7 | RHSA-2018:1296 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | libonig | 6.1.3-2 |
| 12 | libonig | 6.1.3-2 |
| 13 | libonig | 6.1.3-2 |
| 14 | libonig | 6.1.3-2 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| libonig | 6.1.3-2 |
References
- www.securityfocus.com http://www.securityfocus.com/bid/100538
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:1296
- access.redhat.com https://access.redhat.com/security/cve/CVE-2017-9227
- github.com https://github.com/kkos/oniguruma/commit/9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814
- github.com https://github.com/kkos/oniguruma/issues/58
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2017-9227
- ubuntu.com https://ubuntu.com/security/notices/USN-3382-1
- ubuntu.com https://ubuntu.com/security/notices/USN-3382-2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2017-9227
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.