Use-after-free in mruby - CVE-2020-6838

 

Use-after-free in mruby - CVE-2020-6838

Published: January 13, 2020 / Updated: August 7, 2020


Vulnerability identifier: #VU24215
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2020-6838
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: mruby
Affected software:
mruby

Detailed vulnerability description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in "hash_values_at" in "mrbgems/mruby-hash-ext/src/hash-ext.c". A remote attacker can trigger a use-after-free error and execute arbitrary code on the system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


How to mitigate CVE-2020-6838

Install updates from vendor's website.

Sources