CVE-2015-9097 Mail Gem CRLF Injection vulnerability
Attackers can execute arbitrary SMTP commands via CRLF injection in the Ruby mail gem, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2015-9097?
CVE-2015-9097 is a medium-severity command injection vulnerability in n/a, published on 12 Jun 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The mail gem before 2.5.5 for Ruby (aka A Really Ruby Mail Library) is vulnerable to SMTP command injection via CRLF sequences in a RCPT TO or MAIL FROM command, as demonstrated by CRLF sequences immediately before and after a DATA substring.
Weakness: CWE-93
Which versions are affected by CVE-2015-9097?
2 open source packages ship an affected version, including mail. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mail RubyGems | All versions | 2.5.5 |
mail RubyGems | All versions | 2.5.5 |
Products include Mail Project Mail.
How do I fix CVE-2015-9097?
Upgrade mail to 2.5.5 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2015-9097 being exploited?
There is no known exploitation of CVE-2015-9097 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2015-9097, DLA-489-1, GHSA-q86f-fmqf-qrf6.