CVE-2018-10191

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-10191
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-10191.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-10191
Downstream
Published
2018-04-17T21:29:00Z
Modified
2025-10-21T04:26:36.050377Z
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

In versions of mruby up to and including 1.4.0, an integer overflow exists in src/vm.c::mrbvmexec() when handling OP_GETUPVAR in the presence of deep scope nesting, resulting in a use-after-free. An attacker that can cause Ruby code to be run can use this to possibly execute arbitrary code.

References

Affected packages

Git / github.com/mruby/mruby

Affected ranges

Type
GIT
Repo
https://github.com/mruby/mruby
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.0.0
1.1.0
1.2.0
1.3.0
1.4.0

Database specific

vanir_signatures

[
    {
        "source": "https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626",
        "signature_version": "v1",
        "target": {
            "file": "src/vm.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "318179098320671580796334812011546468836",
                "31385894504806590158479134728976733374",
                "291488986920338441806228910834754532837",
                "234188554461621141776788455322527686487",
                "12890778145267399150668197333810861362",
                "46198236631767394421020263073167925398",
                "315187527932322571882289740280446195103",
                "295169726589021630819681535583790457470"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2018-10191-4f906dc6"
    },
    {
        "source": "https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626",
        "signature_version": "v1",
        "target": {
            "file": "src/vm.c",
            "function": "mrb_vm_exec"
        },
        "digest": {
            "length": 34172.0,
            "function_hash": "105486956670678688502489234273124890437"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2018-10191-9de90541"
    }
]