Stack-based Buffer Overflow Affecting oniguruma package, versions <0:6.9.10-4.1.hum1


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
3.08% (88th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-ONIGURUMA-16079889
  • published16 Apr 2026
  • disclosed22 May 2017

Introduced: 22 May 2017

CVE-2017-9225  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade RHEL:10 oniguruma to version 0:6.9.10-4.1.hum1 or higher.
This issue was patched in RHSA-2026:7545.

NVD Description

Note: Versions mentioned in the description apply only to the upstream oniguruma package and not the oniguruma package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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.