CVE-2017-9225 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(...
CriticalCVSS 9.8
EPSS 3.1%
- Published
- Updated
- Exploit status
- No public exploit known
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 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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libonig(Debian:12) | < 6.1.3-2 | 6.1.3-2 |
| debian/libonig(Debian:13) | < 6.1.3-2 | 6.1.3-2 |
| debian/libonig(Debian:14) | < 6.1.3-2 | 6.1.3-2 |
| oniguruma project oniguruma | = 6.2.0 | No fix listed |
| PHP | <= 7.1.5 | No fix listed |
| ruby-lang ruby | <= 2.4.1 | No fix listed |
References
- Debian Security Tracker CVE-2017-9225 vendor-advisory
- github.com patch third-party-advisory
- github.com exploit third-party-advisory
- bugs.debian.org issue-tracking