# CVE-2022-1071: User after free in mrb_vm_exec in mruby/mruby

- Severity: High 7.7 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:C/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.92%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-26T03:40:10.000Z
- Modified: 2026-06-17T04:21:46.320Z
- Weaknesses: CWE-416
- Assigned by: @huntrdev

## Description

User after free in mrb_vm_exec in GitHub repository mruby/mruby prior to 3.2.

(As written by CVE List.)

## Affected

- mruby mruby/mruby: from unspecified before 3.2
- mruby mruby: up to 3.1

## Every score

- @huntrdev: CVSS:3.0 7.7 High `CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/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://huntr.dev/bounties/6597ece9-07af-415b-809b-919ce0a17cf3> (exploit, patch, third-party-advisory)
- <https://github.com/mruby/mruby/commit/aaa28a508903041dd7399d4159a8ace9766b022f> (patch, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2022-1071 · Whole record: https://cve.day/CVE-2022-1071.json · Rebuilt by cve.day 2026-11-25T22:58:10.278Z
