CVE-2022-0481

Source
https://cve.org/CVERecord?id=CVE-2022-0481
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0481.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-0481
Downstream
Related
Published
2022-02-04T22:33:00Z
Modified
2026-08-12T12:49:19.565627Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
NULL Pointer Dereference in mruby/mruby
Details

NULL Pointer Dereference in Homebrew mruby prior to 3.2.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0481.json",
    "cwe_ids": [
        "CWE-476"
    ],
    "cna_assigner": "@huntrdev"
}
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
Fixed
Database specific
Show details
{
    "cpe": "cpe:2.3:a:mruby:mruby:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.2"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.0.0
1.1.0
1.2.0
3.*
3.0.0-preview
3.2.0-rc
3.2.0-rc2
3.2.0-rc3
3.2.0-rc4

Database specific

vanir_signatures_modified
"2026-08-12T12:49:19Z"
vanir_signatures
[
    {
        "source": "https://github.com/mruby/mruby/commit/ae3c99767a27f5c6c584162e2adc6a5d0eb2c54e",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "65251094017747054696574950967279466972",
                "149557534029695174909841093262885926405",
                "239994894420660623504789901265894378299",
                "8161099728401165533228283133619408604",
                "131655888054924282864627581707735239487",
                "176052129860508564888943615711538511549",
                "288156821055742336443962440947373185778",
                "283342148383856369913499303057220069717"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-0481-87940fd9",
        "deprecated": false,
        "signature_type": "Line",
        "target": {
            "file": "mrbgems/mruby-compiler/core/codegen.c"
        }
    },
    {
        "source": "https://github.com/mruby/mruby/commit/ae3c99767a27f5c6c584162e2adc6a5d0eb2c54e",
        "signature_version": "v1",
        "digest": {
            "length": 1261.0,
            "function_hash": "45982939882261723834382504391570358651"
        },
        "id": "CVE-2022-0481-f91558b9",
        "deprecated": false,
        "signature_type": "Function",
        "target": {
            "file": "mrbgems/mruby-compiler/core/codegen.c",
            "function": "gen_hash"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0481.json"