CVE-2017-9226Out-of-bounds Write in Project Oniguruma

CWE-787Out-of-bounds Write14 documents9 sources
Severity
9.8CRITICALNVD
EPSS
1.0%
top 22.57%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 24
Latest updateMay 14

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 heap out-of-bounds write or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of '\700' would produce an invalid code point value larger than 0xff in next_state_val(), resulting in a

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages2 packages

NVDphp/php7.0.07.0.21+2

Patches

🔴Vulnerability Details

3
GHSA
GHSA-q5wh-hr49-c2mq: An issue was discovered in Oniguruma 62022-05-14
CVEList
CVE-2017-9226: An issue was discovered in Oniguruma 62017-05-24
OSV
CVE-2017-9226: An issue was discovered in Oniguruma 62017-05-24

📋Vendor Advisories

4
Ubuntu
PHP vulnerabilities2017-12-18
Ubuntu
PHP vulnerabilities2017-08-10
Red Hat
oniguruma: Heap buffer overflow in next_state_val() during regular expression compilation2017-05-18
Debian
CVE-2017-9226: libonig - An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby thr...2017

💬Community

5
Bugzilla
CVE-2017-9224 CVE-2017-9225 CVE-2017-9226 CVE-2017-9227 CVE-2017-9228 CVE-2017-9229 oniguruma: various flaws [fedora-all]2017-06-30
Bugzilla
CVE-2017-9224 CVE-2017-9225 CVE-2017-9226 CVE-2017-9227 CVE-2017-9228 CVE-2017-9229 php: various flaws [fedora-all]2017-06-30
Bugzilla
CVE-2017-9224 CVE-2017-9225 CVE-2017-9226 CVE-2017-9227 CVE-2017-9228 CVE-2017-9229 oniguruma: various flaws [epel-7]2017-06-30
Bugzilla
CVE-2017-9226 oniguruma: Heap buffer overflow in next_state_val() during regular expression compilation2017-06-30
Bugzilla
CVE-2017-9224 CVE-2017-9225 CVE-2017-9226 CVE-2017-9227 CVE-2017-9228 CVE-2017-9229 ruby: various flaws [fedora-all]2017-06-30
CVE-2017-9226 — Out-of-bounds Write | cvebase