CVE-2020-7385Rapid7 Metasploit
High 8.8 No auth needed
Follow: this CVE · Rapid7 · Rapid7 Metasploit We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 1.8% probability of exploitation in 30 days · percentile 78
- Auth required
- No
- Published
- Apr 23, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Metasploit.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | metasploit-framework |
< 4.19.0 |
4.19.0 |
gem "metasploit-framework", ">= 4.19.0" |
Per OSV / GitHub Advisories (GHSA-xgww-h98f-24qf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rapid7 | metasploit | < 4.19.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Patch Third Party Advisory
- github.com Patch Third Party Advisory
- help.rapid7.com Release Notes Vendor Advisory