CVE-2022-0570

Source
https://cve.org/CVERecord?id=CVE-2022-0570
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-0570.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-0570
Downstream
Published
2022-02-13T04:50:10Z
Modified
2026-08-18T15:18:21Z
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
{
    "cna_assigner":  "@huntrdev",
    "cwe_ids":  [
        "CWE-122"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0570.json"
}
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
Show details
{
    "cpe":  "cpe:2.3:a:mruby:mruby:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "last_affected":  "3.1"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

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

Database specific

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