CVE-2022-0570

Source
https://cve.org/CVERecord?id=CVE-2022-0570
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0570.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-0570
Downstream
Published
2022-02-13T04:50:10Z
Modified
2026-07-09T06:37:17.202459Z
Severity
  • 8.4 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Heap-based Buffer Overflow in mruby/mruby
Details

Heap-based Buffer Overflow in Homebrew mruby prior to 3.2.

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

Affected versions

1.*
1.0.0
1.1.0
1.2.0
3.*
3.0.0-preview

Database specific

vanir_signatures_modified
"2026-07-09T06:37:17Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0570.json"
vanir_signatures
[
    {
        "id": "CVE-2022-0570-3790ead7",
        "digest": {
            "line_hashes": [
                "250889964619986683115425509793375695441",
                "149991598682261646872352068888183222690",
                "180301770692101320549549624457081274120",
                "275175438879289193104325410777767751349",
                "269313880609985085994355009870185956722",
                "180772099378382195537977391242184203595",
                "33931034340967883629544446573788297901",
                "106572323625518312406043916966425474622"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/mruby/mruby/commit/38b164ace7d6ae1c367883a3d67d7f559783faad",
        "deprecated": false,
        "target": {
            "file": "mrbgems/mruby-compiler/core/codegen.c"
        }
    },
    {
        "id": "CVE-2022-0570-dce166ab",
        "digest": {
            "function_hash": "38189806631701030856622711639734159361",
            "length": 1181.0
        },
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/mruby/mruby/commit/38b164ace7d6ae1c367883a3d67d7f559783faad",
        "deprecated": false,
        "target": {
            "function": "gen_values",
            "file": "mrbgems/mruby-compiler/core/codegen.c"
        }
    }
]