CVE-2020-7385

Metasploit Framework 'drb_remote_codeexec' code execution

Published Apr 23, 2021 CVSS 3.1 · 8.1 High EPSS 1.8% KEV · Not listed
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.

Remediation

Vendor Solution

Do not run the drb_remote_codeexec module. After commit 659137da94fa2fe56ce5c44d611db3692bf7d2e5, the Metasploit Framework no longer ships with the affected module.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-5787 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.
Github GHSA Github GHSA GHSA-xgww-h98f-24qf Metasploit Framework user exposes Metasploit to same deserialization issue that is exploited by that module
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
rapid7
Published
Updated
Sep 17, 2024, 1:30 AM
Reserved
Jan 21, 2020, 12:00 AM
Status
Modified
Published
Apr 23, 2021, 4:15 PM
Modified
Jun 17, 2026, 3:24 AM