Wiz Agents & Workflows are here

CVE-2020-7385
Ruby vulnerability analysis and mitigation

Overview

CVE-2020-7385 is a security vulnerability in the Metasploit Framework's DRuby remote code execution module (exploit/linux/misc/drb_remote_codeexec). The vulnerability was discovered and reported by Jeff Dileo of NCC Group through Metasploit's vulnerability disclosure process. When a user runs this module, they inadvertently expose their own Metasploit instance to the same deserialization vulnerability they are attempting to exploit (Rapid7 PR).

Technical details

The vulnerability is classified as CWE-502 (Deserialization of Untrusted Data). The core issue lies in the DRuby module starting a service that itself becomes vulnerable to exploitation. When targeting a malicious server, that server could exploit the running instance of Metasploit to gain code execution within the context of the user running Metasploit (Rapid7 PR Remove).

Impact

An attacker could exploit this vulnerability to gain code execution within the context of the user running Metasploit. This creates a scenario where the tool intended for offensive security testing becomes a vector for compromise of the security tester themselves (Rapid7 PR Remove).

Mitigation and workarounds

Initially, a patch was implemented in October 2020 to prevent the DRuby service from starting automatically. However, due to the inability to properly secure the module against malicious server responses, the ultimate mitigation was to completely remove the DRuby remote code execution module from the Metasploit Framework (Rapid7 PR Remove).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34060HIGH7.1
  • RubyRuby
  • ruby-lsp
NoYesMar 27, 2026
CVE-2026-33635MEDIUM4.3
  • RubyRuby
  • icalendar
NoYesMar 26, 2026
GHSA-2j22-pr5w-6gq8LOW2.3
  • RubyRuby
  • loofah
NoYesMar 26, 2026
CVE-2026-33658LOW2.3
  • RubyRuby
  • activestorage
NoYesMar 26, 2026
GHSA-53p3-c7vp-4mccLOW2.1
  • JavaScriptJavaScript
  • action_text-trix
NoYesMar 29, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management