Vulnerabilities · 2015 · Ruby-lang
CVE-2015-9096
Ruby-lang Ruby vulnerability
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.
Affected products
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ruby/ruby/commit/0827a7e52ba3d957a634b063bf5a391239b9ffee · Patch
- www.mbsd.jp/Whitepaper/smtpi.pdf · Exploit
- github.com/rubysec/ruby-advisory-db/issues/215 · Third Party Advisory
- hackerone.com/reports/137631 · Third Party Advisory
- lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- www.debian.org/security/2017/dsa-3966
- nvd.nist.gov/vuln/detail/CVE-2015-9096
- cve.org/CVERecord?id=CVE-2015-9096
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.