# CVE-2026-1979: mruby JMPNOT-to-JMPIF Optimization vm.c mrb_vm_exec use after free

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- 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.18%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-02-06T04:32:09.200Z
- Modified: 2026-06-17T10:16:49.260Z
- Weaknesses: CWE-119, CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A flaw has been found in mruby up to 3.4.0. This affects the function mrb_vm_exec of the file src/vm.c of the component JMPNOT-to-JMPIF Optimization. Executing a manipulation can lead to use after free. The attack needs to be launched locally. The exploit has been published and may be used. This patch is called e50f15c1c6e131fa7934355eb02b8173b13df415. It is advisable to implement a patch to correct this issue.

(As written by CVE List.)

## Affected

- mruby: 3.0; 3.1; 3.2; 3.3; 3.4.0
- mruby mruby: up to 3.4.0

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 4.3 Medium `AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/mruby/mruby/issues/6701> (exploit, issue-tracking)
- <https://github.com/mruby/mruby/issues/6701#issue-3802609843> (exploit, issue-tracking)
- <https://vuldb.com/?id.344501> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.344501> (permissions-required, signature, vdb-entry)
- <https://vuldb.com/?submit.743377> (third-party-advisory, vdb-entry)
- <https://github.com/sysfce2/mruby/commit/e50f15c1c6e131fa7934355eb02b8173b13df415> (patch)
- <https://github.com/mruby/mruby/> (product)

## Sources

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

---

Page: https://cve.day/CVE-2026-1979 · Whole record: https://cve.day/CVE-2026-1979.json · Rebuilt by cve.day 2026-11-25T22:59:13.535Z
