CVE-2018-12247

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-12247
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-12247.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-12247
Downstream
Published
2018-06-12T14:29:00Z
Modified
2025-09-19T09:17:29.315500Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/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 mruby 1.4.1. There is a NULL pointer dereference in mrbclass, related to certain .clone usage, because mrbobjclone in kernel.c copies flags other than the MRBFLAGISFROZEN flag (e.g., the embedded flag).

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
1.4.1

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2018-12247-3b0da953",
            "digest": {
                "line_hashes": [
                    "102816363305778049823980777167350026179",
                    "103805952287690511097074812976702907717",
                    "331703906774384260930834427119845851482",
                    "310263058440737007007115708403918139423"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "target": {
                "file": "src/kernel.c"
            },
            "deprecated": false,
            "signature_type": "Line",
            "source": "https://github.com/mruby/mruby/commit/55edae0226409de25e59922807cb09acb45731a2"
        },
        {
            "id": "CVE-2018-12247-da979e61",
            "digest": {
                "length": 593.0,
                "function_hash": "155145910620032928335793504528105032157"
            },
            "signature_version": "v1",
            "target": {
                "file": "src/kernel.c",
                "function": "mrb_obj_clone"
            },
            "deprecated": false,
            "signature_type": "Function",
            "source": "https://github.com/mruby/mruby/commit/55edae0226409de25e59922807cb09acb45731a2"
        }
    ]
}