CVE-2012-2140
HIGH 7.5CVSS 2.0Mail Gem Improper Input Validation vulnerability
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.
- Published
- 18 Jul 2012
- Last modified
- 16 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-rp63-jfmw-532w
- Sources
- NVDJSONOSV GHSA-rp63-jfmw-532wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubygems | mail_gemcpe:2.3:a:rubygems:mail_gem:*:*:*:*:*:*:*:* |
<= 2.4.1 | |
| NVD | rubygems | mail_gemcpe:2.3:a:rubygems:mail_gem:2.3.2:*:*:*:*:*:*:* |
= 2.3.2 | |
| NVD | rubygems | mail_gemcpe:2.3:a:rubygems:mail_gem:2.3.3:*:*:*:*:*:*:* |
= 2.3.3 | |
| OSV | RubyGems | < 2.4.3 | 2.4.3 |
References
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html · WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html · WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html · WEB
- http://secunia.com/advisories/48970 · Vendor Advisory
- http://www.openwall.com/lists/oss-security/2012/04/25/8 · WEB
- http://www.openwall.com/lists/oss-security/2012/04/26/1 · WEB
- https://bugzilla.novell.com/show_bug.cgi?id=759092 · WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=816352 · WEB
- https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc · WEB
- https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0 · Exploit, Patch, WEB
- https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2 · Exploit, Patch, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2012-2140 · ADVISORY
- https://github.com/mikel/mail · PACKAGE
History
- 25 Nov 2026 20:16 UTC · NVD: first stored (published 18 Jul 2012)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)