SecurityContext

CVE-2020-7350: Rapid7 Metasploit Framework - Command Injection

  • Cve: CVE-2020-7350
  • Name: Rapid7 Metasploit Framework - Command Injection
  • Description: Rapid7 Metasploit Framework versions before 5.0.85 suffers from an instance of CWE-78: OS Command Injection, wherein the libnotify plugin accepts untrusted user-supplied data via a remote computer's hostname or service name. An attacker can create a specially-crafted hostname or service name to be imported by Metasploit from a variety of sources and trigger a command injection on the operator's terminal. Note, only the Metasploit Framework and products that expose the plugin system is susceptible to this issue -- notably, this does not include Rapid7 Metasploit Pro. Also note, this vulnerability cannot be triggered through a normal scan operation -- the attacker would have to supply a file that is processed with the db_import command.
  • Impact: Attackers can execute arbitrary commands on the operator's terminal, potentially leading to system compromise or data breach.
  • Remediation: Update to version 5.0.85 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker must supply a malicious file for import with db_import
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.05
  • Epss percentile: 0.9244
  • Assignee: [email protected]
  • Published at: 2020-04-22T22:15:12Z
  • Age in days: 2407
  • Modified at: 2026-06-17T03:24:44Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-7350
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

Public exploits

UrlSourceAdded date
https://github.com/rapid7/metasploit-framework/issues/13026nvd2020-04-22
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/fileformat/metasploit_libnotify_cmd_injection.rbmetasploit2020-03-04

References

UrlSourceTags
https://github.com/rapid7/metasploit-framework/issues/13026nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
rapid7:metasploit< 5.0.85nonvd/v1/products/rapid7/metasploit

Projects

RepositoryLink kindsIndexedUrl
rapid7/metasploit-frameworkissuesyes/v1/repositories/rapid7/metasploit-framework

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2020-03-04
  • Exposed hosts: 131
  • Checked, none or zero: known exploited, known exploited by, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports