CVE-2022-0240

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-0240
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0240.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-0240
Downstream
Related
Published
2022-01-17T14:15:07Z
Modified
2025-10-21T06:43:44.425949Z
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

mruby is vulnerable to NULL Pointer Dereference

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

2.*

2.0.0
2.0.1
2.1.0
2.1.0-rc
2.1.1
2.1.1-rc
2.1.1-rc2
2.1.2
2.1.2-rc
2.1.2-rc2

3.*

3.0.0
3.0.0-preview
3.0.0-rc

Database specific

vanir_signatures

[
    {
        "id": "CVE-2022-0240-4c0339a5",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "length": 1039.0,
            "function_hash": "210927324186277684094554442999599709031"
        },
        "target": {
            "function": "prepare_singleton_class",
            "file": "src/class.c"
        },
        "source": "https://github.com/mruby/mruby/commit/31fa3304049fc406a201a72293cce140f0557dca",
        "signature_type": "Function"
    },
    {
        "id": "CVE-2022-0240-80df04ba",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "length": 468.0,
            "function_hash": "243804329852572144038442603560103494293"
        },
        "target": {
            "function": "mrb_singleton_class_ptr",
            "file": "src/class.c"
        },
        "source": "https://github.com/mruby/mruby/commit/31fa3304049fc406a201a72293cce140f0557dca",
        "signature_type": "Function"
    },
    {
        "id": "CVE-2022-0240-c2fab708",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "127250216515249212176059722088213024895",
                "65046484168329266562541326136945861373",
                "90515491667773935949452959684367397961",
                "148757349669851346523609320848136781229",
                "180356075579912771970580110694850219793",
                "56049778565867878013645063959732797828",
                "97747634495783163617099420628214467016"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "src/class.c"
        },
        "source": "https://github.com/mruby/mruby/commit/31fa3304049fc406a201a72293cce140f0557dca",
        "signature_type": "Line"
    }
]