CVE-2020-36401

Source
https://cve.org/CVERecord?id=CVE-2020-36401
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-36401.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-36401
Downstream
Published
2021-07-01T03:15:07.820Z
Modified
2026-03-14T14:47:43.705761Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

mruby 2.1.2 has a double free in mrbdefaultallocf (called from mrbfree and objfree).

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
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.1.2"
        }
    ]
}

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

Database specific

vanir_signatures
[
    {
        "signature_type": "Line",
        "deprecated": false,
        "id": "CVE-2020-36401-0cef8eb3",
        "target": {
            "file": "src/gc.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "257450489011316511620633402431798244724",
                "291664367464202302924807726550456561833",
                "283430232777236476392833576910594740772",
                "916156461856379022783379629891076070"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/mruby/mruby/commit/97319697c8f9f6ff27b32589947e1918e3015503"
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "id": "CVE-2020-36401-f28469e6",
        "target": {
            "file": "src/gc.c",
            "function": "mrb_realloc"
        },
        "digest": {
            "length": 326.0,
            "function_hash": "73814944348713604547654280989925281376"
        },
        "signature_version": "v1",
        "source": "https://github.com/mruby/mruby/commit/97319697c8f9f6ff27b32589947e1918e3015503"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-36401.json"