CVE-2018-10191
In versions of mruby up to and including 1.4.0, an integer overflow exists in src/vm.c::mrb_vm_exec() when handling OP_GETUPVAR in the presence of deep scope nesting, resulting in a use-after-free.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.60%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
In versions of mruby up to and including 1.4.0, an integer overflow exists in src/vm.c::mrb_vm_exec() when handling OP_GETUPVAR in the presence of deep scope nesting, resulting in a use-after-free. An attacker that can cause Ruby code to be run can use this to possibly execute arbitrary code.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 2.60% probability · 85th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-190
- Affected
- mruby/mruby · debian/debian linux
- Source
- cve@mitre.org
References
- https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626Patch, Third Party Advisory
- https://github.com/mruby/mruby/issues/3995Exploit, Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00006.htmlMailing List, Third Party Advisory
- https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626Patch, Third Party Advisory
- https://github.com/mruby/mruby/issues/3995Exploit, Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00006.htmlMailing List, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.