CVE-2012-2140

Summary

CVECVE-2012-2140
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2012-07-18 18:55:01 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v2.0 7.5 from [email protected]

AV:N/AC:L/Au:N/C:P/I:P/A:P

Problem Types: CWE-20 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:L/Au:N/C:P/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Rubygems Mail Gem 2.3.2 All All All
Application Rubygems Mail Gem 2.3.3 All All All
Application Rubygems Mail Gem All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
mail/CHANGELOG.rdoc at 9beb079c70d236a5ad2e1ba95b2c977e55deb7af · mikel/mail · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com
Fix security vulnerability allowing command line exploit when using e… · mikel/mail@ac56f03 · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Exploit, Patch
Making sure that destinations are also properly escaped in all versio… · mikel/mail@39b590d · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Exploit, Patch
816352 – (CVE-2012-2140) CVE-2012-2140 rubygem-mail: arbitrary command execution when using exim or sendmail from commandline af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com
About Secunia Research | Flexera af854a3a-2127-422b-91ae-364da2661108 secunia.com Vendor Advisory
oss-security - Re: CVE request: two flaws fixed in rubygem-mail 2.4.4 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
oss-security - CVE request: two flaws fixed in rubygem-mail 2.4.4 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
[SECURITY] Fedora 15 Update: rubygem-actionmailer-3.0.5-3.fc15 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
[SECURITY] Fedora 17 Update: rubygem-actionmailer-3.0.11-2.fc17 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
[SECURITY] Fedora 16 Update: rubygem-actionmailer-3.0.10-2.fc16 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
Access Denied af854a3a-2127-422b-91ae-364da2661108 bugzilla.novell.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report