# CVE-2020-7385: Metasploit Framework 'drb_remote_codeexec' code execution

- Severity: High 8.1 (CVSS:3.1, scored by rapid7) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.75%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-04-23T15:35:19.277Z
- Modified: 2026-06-17T03:24:47.763Z
- Also known as: GHSA-xgww-h98f-24qf
- Weaknesses: CWE-502
- Assigned by: rapid7

## 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.

(As written by CVE List.)

## Affected

- Rapid7 Metasploit Framework: from 6.0.15 up to 6.0.15
- metasploit-framework (RubyGems): before 4.19.0
- rapid7 metasploit: before 4.19.0

## Every score

- rapid7: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/rapid7/metasploit-framework/pull/14300> (exploit, patch, third-party-advisory, web)
- <https://github.com/rapid7/metasploit-framework/pull/14335> (exploit, patch, third-party-advisory, web)
- <https://help.rapid7.com/metasploit/release-notes/archive/2020/10/> (release-notes, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7385> (advisory)
- <https://github.com/rapid7/metasploit-framework> (package)
- <https://help.rapid7.com/metasploit/release-notes/archive/2020/10> (web)

## Sources

- CVE List: [CVE-2020-7385](https://www.cve.org/CVERecord?id=CVE-2020-7385), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-xgww-h98f-24qf](https://github.com/advisories/GHSA-xgww-h98f-24qf), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-7385](https://nvd.nist.gov/vuln/detail/CVE-2020-7385), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7385 · Whole record: https://cve.day/CVE-2020-7385.json · Rebuilt by cve.day 2026-11-25T22:57:57.805Z
