{"id":"CVE-2020-7385","published":"2021-04-23T15:35:19Z","modified":"2024-09-17T01:30:50Z","title":"Metasploit Framework 'drb_remote_codeexec' code execution","vendor":"Rapid7","product":"Metasploit Framework","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0175,"percentile":0.78415,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/rapid7/metasploit-framework/pull/14300","tags":["x_refsource_MISC"]},{"url":"https://help.rapid7.com/metasploit/release-notes/archive/2020/10/","tags":["x_refsource_MISC"]},{"url":"https://github.com/rapid7/metasploit-framework/pull/14335","tags":["x_refsource_CONFIRM"]}],"priority":{"score":21.4,"factors":[{"name":"EPSS percentile","points":15.68},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"rapid7","affectedVersions":[{"vendor":"Rapid7","product":"Metasploit Framework","versions":[">= 6.0.15, <= 6.0.15"]}],"solutions":{"items":["Do not run the drb_remote_codeexec module. After commit 659137da94fa2fe56ce5c44d611db3692bf7d2e5, the Metasploit Framework no longer ships with the affected module."],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"metasploit-framework","vulnerableRanges":["<4.19.0"],"patched":["4.19.0"],"from":["GHSA-xgww-h98f-24qf"],"provenance":"source"}],"summary":{"text":"The flaw is a deserialization of untrusted data weakness in the Metasploit Framework, specifically in the Distributed Ruby (DRb) class functions it relies on, which are exposed while the drb_remote_codeexec module is running. An attacker can achieve code execution on the Metasploit workstation, which typically runs with elevated privileges, but only by luring a Metasploit user to launch that module against a malicious endpoint, since it cannot happen automatically and requires no prior authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:05:08Z"},"euvd":{"id":"EUVD-2022-5787","exploited":false,"provenance":"source"}}