CVE-2020-7385 json
Metasploit Framework 'drb_remote_codeexec' code execution
published 2021-04-23 5 y ago modified 2026-06-17 4 mo ago also GHSA-xgww-h98f-24qf , EUVD-2022-5787
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems metasploit-framework 4.19.0
- rapid7 metasploit 4.19.0
- github.com/rapid7/metasploit-framework#14300 pull request
- github.com/rapid7/metasploit-framework#14335 pull request
Exploit prediction
1.75% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/rapid7/metasploit-framework/pull/14300 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | metasploit-framework | <4.19.0 |
4.19.0 |
Affected products
- Rapid7 Metasploit Framework
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/rapid7/metasploit-framework/pull/14300
web, exploit, patch, third-party-advisory
-
github.com
/rapid7/metasploit-framework/pull/14335
web, patch, third-party-advisory
-
help.rapid7.com
/metasploit/release-notes/archive/2020/10/
release-notes, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-7385
advisory
-
github.com
/rapid7/metasploit-framework
package
-
help.rapid7.com
/metasploit/release-notes/archive/2020/10
web
Sources
- CVE List CVE-2020-7385
- GitHub Advisory GHSA-xgww-h98f-24qf
- NVD CVE-2020-7385
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.