Skip to content
OpenAdvisories
Medium · 6.1 CVE-2015-9097 EUVD-2017-0290GHSA-q86f-fmqf-qrf6

Mail Gem CRLF Injection vulnerability

Published Jun 12, 2017 · Updated Sep 17, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-mail 2.6.1+dfsg1-1 —
Debian 13 ruby-mail 2.6.1+dfsg1-1 —
Debian 12 ruby-mail 2.6.1+dfsg1-1 —
Debian 7 ruby-mail 2.4.4-2+deb7u1 DLA-489-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems mail < 2.5.5 2.5.5 GHSA-q86f-fmqf-qrf6

Advisories 1

References