CVE-2011-0739 Mail Improper Input Validation vulnerability
Remote attackers can execute arbitrary commands via shell metacharacters in email addresses using the Ruby Mail gem's sendmail delivery agent.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2011-0739?
CVE-2011-0739 is a medium-severity command injection vulnerability in n/a, published on 2 Feb 2011. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The deliver function in the sendmail delivery agent (lib/mail/network/delivery_methods/sendmail.rb) in Ruby Mail gem 2.2.14 and earlier allows remote attackers to execute arbitrary commands via shell metacharacters in an e-mail address.
Weakness: CWE-20
Which versions are affected by CVE-2011-0739?
2 open source packages ship an affected version, including mail. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mail RubyGems | All versions | 2.2.15 |
mail RubyGems | All versions | 2.2.15 |
Products include Mikel Lindsaar Mail.
How do I fix CVE-2011-0739?
Upgrade mail to 2.2.15 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2011-0739 being exploited?
There is no known exploitation of CVE-2011-0739 in the wild and no public exploit code.
Sources
Also known as GHSA-cpjc-p7fc-j9xh.