mruby is vulnerable to NULL Pointer Dereference
{
"cwe_ids": [
"CWE-476"
],
"cna_assigner": "@huntrdev",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0240.json"
}{
"source": [
"CPE_RANGE",
"REFERENCES"
],
"cpe": "cpe:2.3:a:mruby:mruby:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "3.2"
}
]
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0240.json"
[
{
"source": "https://github.com/mruby/mruby/commit/31fa3304049fc406a201a72293cce140f0557dca",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"function_hash": "210927324186277684094554442999599709031",
"length": 1039.0
},
"id": "CVE-2022-0240-4c0339a5",
"target": {
"function": "prepare_singleton_class",
"file": "src/class.c"
},
"deprecated": false
},
{
"source": "https://github.com/mruby/mruby/commit/31fa3304049fc406a201a72293cce140f0557dca",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"function_hash": "243804329852572144038442603560103494293",
"length": 468.0
},
"id": "CVE-2022-0240-80df04ba",
"target": {
"function": "mrb_singleton_class_ptr",
"file": "src/class.c"
},
"deprecated": false
},
{
"source": "https://github.com/mruby/mruby/commit/31fa3304049fc406a201a72293cce140f0557dca",
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"line_hashes": [
"127250216515249212176059722088213024895",
"65046484168329266562541326136945861373",
"90515491667773935949452959684367397961",
"148757349669851346523609320848136781229",
"180356075579912771970580110694850219793",
"56049778565867878013645063959732797828",
"97747634495783163617099420628214467016"
],
"threshold": 0.9
},
"id": "CVE-2022-0240-c2fab708",
"target": {
"file": "src/class.c"
},
"deprecated": false
}
]
"2026-07-22T01:09:43Z"