What’s Vulnerable › Vulnerabilities
CVE-2012-2140
- Severity: high (CVSS 7.5 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2012-07-18 · updated 2026-06-16
- Weakness: CWE-20
Description
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.
Affected products
- rubygems Mail Gem: through 2.4.1; 2.3.2, 2.3.3
References
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html
- http://secunia.com/advisories/48970
- http://www.openwall.com/lists/oss-security/2012/04/25/8
- http://www.openwall.com/lists/oss-security/2012/04/26/1
- https://bugzilla.novell.com/show_bug.cgi?id=759092
- https://bugzilla.redhat.com/show_bug.cgi?id=816352
- https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc
- https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0
- https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html
Get alerted when CVE-2012-2140 or the next vulnerability affects your stack