HighGHSA-rp63-jfmw-532wCVE-2012-2140
Mail Gem Improper Input Validation vulnerability
Published 24 Oct 2017 · Updated 3 Dec 2024
Is your project on an affected mail?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
mailRubyGems
- Affected
- <2.4.3
- Fixed in
- 2.4.3
Update to the fixed version for your release line, for example:
bundle update --conservative mail # Gemfile: '>= 2.4.3'Details
The Mail gem before 2.4.3 for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in a (1) sendmail or (2) exim delivery.
Is GHSA-rp63-jfmw-532w in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected mail, and gives you the command that fixes it.
More advisories for mail
- MediumCVE-2026-63435Mail: Email address spoofing via malformed RFC 2047 encoded-words · 2 Sept 2026
- MediumCVE-2012-2139Mail Gem Path Traversal vulnerability · 24 Oct 2017
- MediumCVE-2011-0739Mail Improper Input Validation vulnerability · 24 Oct 2017
- MediumCVE-2015-9097Mail Gem CRLF Injection vulnerability · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2012-2140
- Linkgithub.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0
- Linkgithub.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2
- Linkbugzilla.novell.com/show_bug.cgi?id=759092
- Linkbugzilla.redhat.com/show_bug.cgi?id=816352
- Packagegithub.com/mikel/mail
- Linkgithub.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc
- Linklists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html
- Linklists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html
- Linklists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html
- Linkwww.openwall.com/lists/oss-security/2012/04/25/8
- Linkwww.openwall.com/lists/oss-security/2012/04/26/1
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.