CVE-2017-9226

Source
https://cve.org/CVERecord?id=CVE-2017-9226
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-9226.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2017-9226
Downstream
Related
Published
2017-05-24T15:29:00.277Z
Modified
2026-02-22T01:20:31.844633Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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 heap out-of-bounds write or read occurs in nextstateval() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetchtoken() and fetchtokenincc(). A malformed regular expression containing an octal number in the form of '\700' would produce an invalid code point value larger than 0xff in nextstateval(), resulting in an out-of-bounds write memory corruption.

References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events

Database specific

vanir_signatures
[
    {
        "deprecated": false,
        "id": "CVE-2017-9226-343f4c1a",
        "digest": {
            "function_hash": "233037532068098537505988791132617368492",
            "length": 13872.0
        },
        "signature_version": "v1",
        "target": {
            "function": "compile_bracket_matchingpath",
            "file": "ext/pcre/pcrelib/pcre_jit_compile.c"
        },
        "source": "https://github.com/php/php-src/commit/73915a2bd61f21fd809b4d50af9aba950f43e807",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "id": "CVE-2017-9226-cfd9dfdb",
        "digest": {
            "line_hashes": [
                "41612049881914751775057704412356952022",
                "206133687184829194312361432760839012982",
                "60469889591596012334583203454317370370",
                "317056786488417399517652373716894105276"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1",
        "target": {
            "file": "ext/pcre/pcrelib/pcre_jit_compile.c"
        },
        "source": "https://github.com/php/php-src/commit/73915a2bd61f21fd809b4d50af9aba950f43e807",
        "signature_type": "Line"
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-9226.json"