CVE-2017-9229

Source
https://cve.org/CVERecord?id=CVE-2017-9229
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-9229.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-9229
Downstream
ALPINE (1)
DEBIAN (1)
MGASA (1)
RHSA (2)
SUSE (4)
UBUNTU (1)
Related
Published
2017-05-24T15:29:00Z
Modified
2026-10-22T07:18:51Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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 SIGSEGV occurs in left_adjust_char_head() during regular expression compilation. Invalid handling of reg->dmax in forward_search_range() could result in an invalid pointer dereference, normally as an immediate denial-of-service condition.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                "cpe:2.3:a:php:php:*:*:*:*:*:oniguruma-mod:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "last_affected":  "7.1.5"
                        },
                        {
                            "introduced":  "5.6.0"
                        },
                        {
                            "fixed":  "5.6.31"
                        },
                        {
                            "introduced":  "7.0.0"
                        },
                        {
                            "fixed":  "7.0.21"
                        },
                        {
                            "introduced":  "7.1.0"
                        },
                        {
                            "fixed":  "7.1.7"
                        }
                    ],
                    "source":  "CPE_RANGE"
                }
            ],
            "vendor_product":  "php:php"
        },
        {
            "cpes":  [
                "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:oniguruma-mod:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "last_affected":  "2.4.1"
                        }
                    ],
                    "source":  "CPE_RANGE"
                }
            ],
            "vendor_product":  "ruby-lang:ruby"
        }
    ]
}
References

Affected packages

Git / github.com/kkos/oniguruma

Affected ranges

Type
GIT
Repo
https://github.com/kkos/oniguruma
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:oniguruma_project:oniguruma:6.2.0:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "6.2.0"
                },
                {
                    "last_affected":  "6.2.0"
                }
            ],
            "source":  "CPE_STRING"
        },
        {
            "range":  [
                {
                    "fixed":  "b690371bbf97794b4a1d3f295d4fb9a8b05d402d"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

6.*
6.2.0
v6.*
v6.2.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-9229.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "105094539439841922480547185931894644113",
            "length":  3086
        },
        "id":  "CVE-2017-9229-2b3e9cd2",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/kkos/oniguruma/commit/b690371bbf97794b4a1d3f295d4fb9a8b05d402d",
        "target":  {
            "file":  "src/regexec.c",
            "function":  "forward_search_range"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "238193524994326941537268933406975216315",
                "323539855602310814567028195441961855234",
                "219948217909986542639566319432215472492",
                "29692786740800380382408848046168031926",
                "297123705308508685111363668584463538286",
                "35490740505333762553166574200435388724",
                "206860580592534291063270562780357167672",
                "231276264933485246742963358198498899993",
                "223498094614570401752945301332299570037",
                "241074634920618019596635727660223892802",
                "302066423732294138736347109270700250069",
                "223933234807833074803479263502432519355",
                "250386841442677365720412883020285542002",
                "23757839308301754900811200943268626812",
                "36125937906016925669278558201631510719"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2017-9229-7c84093e",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/kkos/oniguruma/commit/b690371bbf97794b4a1d3f295d4fb9a8b05d402d",
        "target":  {
            "file":  "src/regexec.c"
        }
    }
]
vanir_signatures_modified
"2026-10-22T07:18:51Z"