CVE catalog

CVE-2017-9225

libonig: CVE-2017-9225

[CVE catalog]

Severity
Medium · CVSS 5.9CVSS: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.

DistributionPackageReleaseVersionStatus
Debianlibonigsid6.9.10-1fixed
Debianlibonigforky6.9.10-1fixed
Debianlibonigtrixie6.9.9-1fixed
Debianlibonigbookworm6.9.8-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibonigsourcesid6.1.3-2not yet assignedNot reported[863313]
Debianlibonigsourceforky6.1.3-2not yet assignedNot reported[863313]
Debianlibonigsourcetrixie6.1.3-2not yet assignedNot reported[863313]
Debianlibonigsourcebookworm6.1.3-2not yet assignedNot reported[863313]

[Debian bug #863313]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libonig5]Fixed

    Source package: [libonig]

    Details (2)
    • 6.9.8-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.3-2

      dsa · libonig · debian · bookworm; dsa · libonig · debian · 12

    • 6.9.8-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.3-2

      dsa · libonig · debian · bookworm; dsa · libonig · debian · 12

  • Source package: [libonig]

    Details (2)
    • 6.9.8-1 · amd64 · bookworm

      Fixed · Fixed: 6.1.3-2

      dsa · libonig · debian · bookworm; dsa · libonig · debian · 12

    • 6.9.8-1 · arm64 · bookworm

      Fixed · Fixed: 6.1.3-2

      dsa · libonig · debian · bookworm; dsa · libonig · debian · 12

[Debian 13 (Trixie)]

  • [libonig5]Fixed

    Source package: [libonig]

    Details (2)
    • 6.9.9-1+b1 · amd64 · trixie

      Fixed · Fixed: 6.1.3-2

      dsa · libonig · debian · 13

    • 6.9.9-1+b1 · arm64 · trixie

      Fixed · Fixed: 6.1.3-2

      dsa · libonig · debian · 13

  • Source package: [libonig]

    Details (2)
    • 6.9.9-1+b1 · amd64 · trixie

      Fixed · Fixed: 6.1.3-2

      dsa · libonig · debian · 13

    • 6.9.9-1+b1 · arm64 · trixie

      Fixed · Fixed: 6.1.3-2

      dsa · libonig · debian · 13

Observed:

References