CVE-2022-1276

Source
https://cve.org/CVERecord?id=CVE-2022-1276
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1276.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-1276
Downstream
Related
Published
2022-04-10T09:35:10Z
Modified
2026-07-22T02:23:05.504286Z
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
Out-of-bounds Read in mrb_get_args in mruby/mruby
Details

Out-of-bounds Read in mrbgetargs in GitHub repository mruby/mruby prior to 3.2. Possible arbitrary code execution if being exploited.

Database specific
{
    "cwe_ids": [
        "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1276.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
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-07-22T02:23:05Z"
vanir_signatures
[
    {
        "id": "CVE-2022-1276-0407dc09",
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "120058306566273560565626848773564609",
                "311717043518601324447032311762159953896",
                "243600602390835020626630303640545407430",
                "179402337016350086543169872163156511253"
            ]
        },
        "source": "https://github.com/mruby/mruby/commit/c8c083cb750606b2da81582cd8e43b442bb143e6",
        "target": {
            "file": "mrbgems/mruby-compiler/core/codegen.c"
        }
    },
    {
        "id": "CVE-2022-1276-8503e4cc",
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "length": 3643.0,
            "function_hash": "19399435787969582511689093949920072930"
        },
        "source": "https://github.com/mruby/mruby/commit/c8c083cb750606b2da81582cd8e43b442bb143e6",
        "target": {
            "function": "gen_assignment",
            "file": "mrbgems/mruby-compiler/core/codegen.c"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1276.json"