Vulnerability · Published Apr 23, 2021 · Assigned by rapid7
CVE-2020-7385Metasploit Framework 'drb_remote_codeexec' code execution
High 8.1
In plain English
A high-severity unsafe deserialization in Metasploit Framework from Rapid7. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| RubyGems | metasploit-framework | 4.19.0 | GHSA-xgww-h98f-24qf |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Rapid7 | Metasploit Framework | 6.0.15 – through 6.0.15 |
Weakness: CWE-502 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
References
- https://github.com/rapid7/metasploit-framework/pull/14300 x_refsource_MISC
- https://help.rapid7.com/metasploit/release-notes/archive/2020/10/ x_refsource_MISC
- https://github.com/rapid7/metasploit-framework/pull/14335 x_refsource_CONFIRM