CVE-2022-1286

Source
https://cve.org/CVERecord?id=CVE-2022-1286
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1286.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-1286
Downstream
Related
Published
2022-04-10T10:40:09Z
Modified
2026-07-22T02:23:06.114661Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
heap-buffer-overflow in mrb_vm_exec in mruby/mruby in mruby/mruby
Details

heap-buffer-overflow in mrbvmexec in mruby/mruby in GitHub repository mruby/mruby prior to 3.2. Possible arbitrary code execution if being exploited.

Database specific
{
    "cwe_ids": [
        "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1286.json",
    "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
{
    "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
[
    {
        "target": {
            "function": "mrb_remove_method",
            "file": "src/class.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "function_hash": "247492600817286190057563036038273421833",
            "length": 256.0
        },
        "id": "CVE-2022-1286-736c7aa9",
        "source": "https://github.com/mruby/mruby/commit/b1d0296a937fe278239bdfac840a3fd0e93b3ee9"
    },
    {
        "target": {
            "file": "src/class.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "259367594531599583054158057858247157755",
                "253356097824957435396565925400410528301",
                "102512842315698149060632734968274965302",
                "261759070071364822565035039493212483244"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-1286-951bba30",
        "source": "https://github.com/mruby/mruby/commit/b1d0296a937fe278239bdfac840a3fd0e93b3ee9"
    }
]
vanir_signatures_modified
"2026-07-22T02:23:06Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1286.json"