Vulnerability record · CVE-2020-7385 · published 23 April 2021
CVE-2020-7385: Rapid7 metasploit deserialization of untrusted data vulnerability
Rapid7 · Metasploit
By launching the drb_remote_codeexec exploit, a Metasploit Framework user will inadvertently expose Metasploit to the same deserialization issue that is exploited by that module, due to the reliance on the vulnerable Distributed Ruby class functions. Since Metasploit Framework typically runs with elevated privileges, this can lead to a system compromise on the Metasploit workstation. Note that an attacker would have to lie in wait and entice the Metasploit user to run the affected module against a malicious endpoint in a "hack-back" type of attack. Metasploit is only vulnerable when the drb_remote_codeexec module is running. In most cases, this cannot happen automatically.
Description
By launching the drb_remote_codeexec exploit, a Metasploit Framework user will inadvertently expose Metasploit to the same deserialization issue that is exploited by that module, due to the reliance on the vulnerable Distributed Ruby class functions. Since Metasploit Framework typically runs with elevated privileges, this can lead to a system compromise on the Metasploit workstation. Note that an attacker would have to lie in wait and entice the Metasploit user to run the affected module against a malicious endpoint in a "hack-back" type of attack. Metasploit is only vulnerable when the drb_remote_codeexec module is running. In most cases, this cannot happen automatically.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/rapid7/metasploit-framework/pull/14300 | ExploitPatchThird Party Advisory |
| https://github.com/rapid7/metasploit-framework/pull/14335 | PatchThird Party Advisory |
| https://help.rapid7.com/metasploit/release-notes/archive/2020/10/ | Release NotesVendor Advisory |
| https://github.com/rapid7/metasploit-framework/pull/14300 | ExploitPatchThird Party Advisory |
| https://github.com/rapid7/metasploit-framework/pull/14335 | PatchThird Party Advisory |
| https://help.rapid7.com/metasploit/release-notes/archive/2020/10/ | Release NotesVendor Advisory |
Track CVE-2020-7385 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2020-7385), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.