CVE-2018-12249

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-12249
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-12249.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-12249
Downstream
Published
2018-06-12T14:29:00Z
Modified
2025-09-19T09:17:29.431893Z
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 mruby 1.4.1. There is a NULL pointer dereference in mrbclassreal because "class BasicObject" is not properly supported in class.c.

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": [
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "155455186924564632680250180701856630044",
                    "264202324149182625447183625422316271751",
                    "94991482216256460482615044015629407054",
                    "150556608830758180902443676307007741603",
                    "321360138958576321008453714337982509634",
                    "243470259043269232215136070449174223738",
                    "136177192398406707742052394993833219302"
                ]
            },
            "signature_version": "v1",
            "signature_type": "Line",
            "source": "https://github.com/mruby/mruby/commit/faa4eaf6803bd11669bc324b4c34e7162286bfa3",
            "id": "CVE-2018-12249-77433845",
            "deprecated": false,
            "target": {
                "file": "src/class.c"
            }
        },
        {
            "digest": {
                "function_hash": "252883612165395493998660936045010458921",
                "length": 193.0
            },
            "signature_version": "v1",
            "signature_type": "Function",
            "source": "https://github.com/mruby/mruby/commit/faa4eaf6803bd11669bc324b4c34e7162286bfa3",
            "id": "CVE-2018-12249-b11698cf",
            "deprecated": false,
            "target": {
                "file": "src/class.c",
                "function": "mrb_class_real"
            }
        }
    ]
}