CVE-2012-2140
HIGH · CVSS 7.5EPSS 4.5%EU EUVD
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.
Key facts
- CVSS score
- 7.5 (v2.0)
- Severity
- HIGH
- CVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P- Weakness (CWE)
- CWE-20
- EPSS score
- 4.5% (91th percentile)
- In CISA KEV
- No
- In EU EUVD
- Yes (EUVD-2017-0304)
- Published
- July 18, 2012
- NVD last modified
- June 16, 2026
- Status
- Modified
EU Vulnerability Database (EUVD)
This vulnerability is also tracked by ENISA as EUVD-2017-0304 in the EU Vulnerability Database. Last updated in EUVD on August 6, 2024.
View on the EU Vulnerability DatabaseAffected products
- rubygems / mail gem
- rubygems / mail gem
- rubygems / mail gem
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(Vendor Advisory)
- 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(Exploit, Patch)
- https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2(Exploit, Patch)
Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS
Query CVEs from your AI assistant
The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.
Add the CVE brain