Remote code executionin Rapid7 Metasploit Framework.
No public exploit found; not on exploited lists.
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.
- Upgrade metasploit-framework (RubyGems) to 4.19.0 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 21 Jan 2020CVE ID reserved by rapid7.
- 23 Apr 2021Published in the CVE List.
- 17 Sep 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other Metasploit Framework vulnerabilities
Same weakness: Deserialization of untrusted data
- github.com x_refsource_MISC
- help.rapid7.com x_refsource_MISC
- github.com x_refsource_CONFIRM
Patchminder. CVE-2020-7385: Remote code execution in Rapid7 Metasploit Framework. https://patchminder.com/cve/cve-2020-7385/ (accessed 5 December 2026).