
CVE catalog
CVE-2017-9225
libonig: CVE-2017-9225
- Severity
- Medium · CVSS 5.9
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.08% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libonig | sid | 6.9.10-1 | fixed |
| Debian | libonig | forky | 6.9.10-1 | fixed |
| Debian | libonig | trixie | 6.9.9-1 | fixed |
| Debian | libonig | bookworm | 6.9.8-1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libonig | source | sid | 6.1.3-2 | not yet assigned | Not reported | [863313] |
| Debian | libonig | source | forky | 6.1.3-2 | not yet assigned | Not reported | [863313] |
| Debian | libonig | source | trixie | 6.1.3-2 | not yet assigned | Not reported | [863313] |
| Debian | libonig | source | bookworm | 6.1.3-2 | not yet assigned | Not reported | [863313] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libonig5]Fixed
Source package: [libonig]
Details (2)
6.9.8-1· amd64 · bookwormFixed · Fixed:
6.1.3-2dsa · libonig · debian · bookworm; dsa · libonig · debian · 12
6.9.8-1· arm64 · bookwormFixed · Fixed:
6.1.3-2dsa · libonig · debian · bookworm; dsa · libonig · debian · 12
- [libonig-dev]Fixed
Source package: [libonig]
Details (2)
6.9.8-1· amd64 · bookwormFixed · Fixed:
6.1.3-2dsa · libonig · debian · bookworm; dsa · libonig · debian · 12
6.9.8-1· arm64 · bookwormFixed · Fixed:
6.1.3-2dsa · libonig · debian · bookworm; dsa · libonig · debian · 12
[Debian 13 (Trixie)]
- [libonig5]Fixed
Source package: [libonig]
Details (2)
6.9.9-1+b1· amd64 · trixieFixed · Fixed:
6.1.3-2dsa · libonig · debian · 13
6.9.9-1+b1· arm64 · trixieFixed · Fixed:
6.1.3-2dsa · libonig · debian · 13
- [libonig-dev]Fixed
Source package: [libonig]
Details (2)
6.9.9-1+b1· amd64 · trixieFixed · Fixed:
6.1.3-2dsa · libonig · debian · 13
6.9.9-1+b1· arm64 · trixieFixed · Fixed:
6.1.3-2dsa · libonig · debian · 13
Observed: