Heap-based buffer overflow in mruby - CVE-2020-15866

 

Heap-based buffer overflow in mruby - CVE-2020-15866

Published: July 26, 2020 / Updated: August 7, 2020


Vulnerability identifier: #VU31885
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-15866
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the the mrb_yield_with_class function in vm.c because of incorrect VM stack handling. It can be triggered via the stack_copy function. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

mruby

How to mitigate CVE-2020-15866

Install updates from vendor's website.

mruby - update to 2.1.2

External References

Related Security Bulletins