Arbitrary Shell Command Injection Affecting mail package, versions < 2.2.15


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.71% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-MAIL-20013
  • published24 Jan 2011
  • disclosed24 Jan 2011
  • creditAndy Lindeman, Steven Lorek

Introduced: 24 Jan 2011

CVE-2011-0739  (opens in a new tab)
CWE-77  (opens in a new tab)

Overview

mail is a Ruby Mail handler gem.

Affected versions of this gem do not properly sanitise input passed from an email from address in the deliver() function in lib/mail/network/delivery_methods/sendmail.rb before being used as a command line argument. This may allow a remote attacker to inject arbitrary shell commands.

CVSS Base Scores

version 3.1