CVE-2018-12247

Source
https://cve.org/CVERecord?id=CVE-2018-12247
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12247.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-12247
Downstream
Published
2018-06-12T14:29:00Z
Modified
2026-07-08T17:17:46Z
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 mrb_class, related to certain .clone usage, because mrb_obj_clone in kernel.c copies flags other than the MRB_FLAG_IS_FROZEN 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
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:mruby:mruby:1.4.1:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "1.4.1"
        },
        {
            "last_affected":  "1.4.1"
        }
    ],
    "source":  [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.4.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12247.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "102816363305778049823980777167350026179",
                "103805952287690511097074812976702907717",
                "331703906774384260930834427119845851482",
                "310263058440737007007115708403918139423"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2018-12247-3b0da953",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/mruby/mruby/commit/55edae0226409de25e59922807cb09acb45731a2",
        "target":  {
            "file":  "src/kernel.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "155145910620032928335793504528105032157",
            "length":  593
        },
        "id":  "CVE-2018-12247-da979e61",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/mruby/mruby/commit/55edae0226409de25e59922807cb09acb45731a2",
        "target":  {
            "file":  "src/kernel.c",
            "function":  "mrb_obj_clone"
        }
    }
]
vanir_signatures_modified
"2026-07-08T17:17:46Z"