# CVE-2020-36401: mruby 2.1.2 has a double free in mrbdefaultallocf (called from mrbfree and objfree).

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.99%, higher than 61% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-01T02:51:06.000Z
- Modified: 2026-06-17T03:15:24.923Z
- Weaknesses: CWE-415
- Assigned by: mitre

## Description

mruby 2.1.2 has a double free in mrb_default_allocf (called from mrb_free and obj_free).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mruby mruby: 2.1.2

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801> (exploit, issue-tracking, patch, third-party-advisory)
- <https://github.com/mruby/mruby/commit/97319697c8f9f6ff27b32589947e1918e3015503> (patch, third-party-advisory)
- <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/mruby/OSV-2020-744.yaml> (third-party-advisory)

## Sources

- CVE List: [CVE-2020-36401](https://www.cve.org/CVERecord?id=CVE-2020-36401), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-36401](https://nvd.nist.gov/vuln/detail/CVE-2020-36401), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-36401 · Whole record: https://cve.day/CVE-2020-36401.json · Rebuilt by cve.day 2026-11-25T22:57:58.187Z
