CVE Vulnerabilities

CVE-2015-9096

Improper Neutralization of CRLF Sequences ('CRLF Injection')

Published: Jun 12, 2017 | Modified: Jul 15, 2018
CVSS 3.x
6.1
MEDIUM
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:N
RedHat/V2
RedHat/V3
5.3 LOW
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Ubuntu
MEDIUM

Net::SMTP in Ruby before 2.4.0 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

The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.

Affected Software

Name Vendor Start Version End Version
Ruby Ruby-lang * 2.4.0 (including)
Ruby1.9.1 Ubuntu trusty *
Ruby1.9.1 Ubuntu upstream *
Ruby2.0 Ubuntu trusty *
Ruby2.0 Ubuntu upstream *
Ruby2.3 Ubuntu devel *
Ruby2.3 Ubuntu upstream *
Ruby2.3 Ubuntu xenial *
Ruby2.3 Ubuntu yakkety *
Ruby2.3 Ubuntu zesty *

Potential Mitigations

References