CVE-2022-1276

Source
https://nvd.nist.gov/vuln/detail/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
Published
2022-04-10T10:15:07Z
Modified
2025-10-21T06:47:18.353425Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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

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

Affected versions

1.*

1.0.0
1.1.0
1.2.0
1.3.0
1.4.0
1.4.1

2.*

2.0.0
2.0.1
2.1.0
2.1.0-rc
2.1.1
2.1.1-rc
2.1.1-rc2
2.1.2
2.1.2-rc
2.1.2-rc2

3.*

3.0.0
3.0.0-preview
3.0.0-rc

Database specific

vanir_signatures

[
    {
        "id": "CVE-2022-1276-0407dc09",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "120058306566273560565626848773564609",
                "311717043518601324447032311762159953896",
                "243600602390835020626630303640545407430",
                "179402337016350086543169872163156511253"
            ]
        },
        "target": {
            "file": "mrbgems/mruby-compiler/core/codegen.c"
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/mruby/mruby/commit/c8c083cb750606b2da81582cd8e43b442bb143e6"
    },
    {
        "id": "CVE-2022-1276-8503e4cc",
        "deprecated": false,
        "digest": {
            "length": 3643.0,
            "function_hash": "19399435787969582511689093949920072930"
        },
        "target": {
            "function": "gen_assignment",
            "file": "mrbgems/mruby-compiler/core/codegen.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/mruby/mruby/commit/c8c083cb750606b2da81582cd8e43b442bb143e6"
    }
]