Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2012-2140

27
FAUCET Score

CVE-2012-2140 describes a critical command injection vulnerability in the Ruby Mail gem versions prior to 2.4.3, affecting applications utilizing its sendmail or exim delivery methods. This flaw allows unauthenticated remote attackers to execute arbitrary shell commands due to improper handling of metacharacters. With a CVSS score of 7.5, this vulnerability presents a high risk of compromise, enabling full confidentiality, integrity, and availability impact. While no public exploits or active exploitation have been identified, and community discussion is minimal, the potential for severe impact necessitates patching.

Impacted Technologies

VendorProductVersion(s)CPE
<= 2.4.1CPE matchmatch criteria
cpe:2.3:a:rubygems:mail_gem:*:*:*:*:*:*:*:*
2.3.2CPE matchmatch criteria
cpe:2.3:a:rubygems:mail_gem:2.3.2:*:*:*:*:*:*:*
2.3.3CPE matchmatch criteria
cpe:2.3:a:rubygems:mail_gem:2.3.3:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 2.0

7.5HIGH

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

Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Exploitability Score
10.0
Impact Score
6.4
CvssVersion
2.0

Exploit Intelligence

EPSS Score
4.47%
Probability of exploitation in next 30 days
EPSS Percentile
90.4%
Percentile rank of EPSS score among Peer Group
As of 2026-07-26
Model: v2026.06.15
This CVE's current EPSS score of 0.0447 is in the 83rd percentile among its peer group of 51,485 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.1 Mastodon, and 0.4 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (15)

github_advisorypatch availablevia nvd_reference
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: converge-ui-devel-0:1.0.4-1.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: puppet-0:2.6.17-2.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-actionpack-1:3.0.10-10.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-activerecord-1:3.0.10-6.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-activesupport-1:3.0.10-4.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-chunky_png-0:1.2.0-3.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-mail-0:2.3.0-3.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-net-ldap-0:0.1.1-3.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-compass-0:0.11.5-2.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-compass-960-plugin-0:0.10.4-2.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-delayed_job-0:2.1.4-2.el6cf
View patch
redhatpatch availablevia redhat_api
Product: CloudForms for RHEL 6Fixed in: rubygem-ldap_fluff-0:0.1.3-1.el6_3
View patch
rubygemspatch availablevia ghsa
Product: mailFixed in: 2.4.3
redhatno patchvia redhat_api
Product: Red Hat Subscription Asset ManagerFixed in: rubygem-mail

Vendor Advisories (2)

rubygemsGHSA-rp63-jfmw-532whigh

Mail Gem Improper Input Validation vulnerability

Oct 24, 2017
redhatCVE-2012-2140Important

rubygem-mail: arbitrary command execution when using exim or sendmail from commandline

Mar 14, 2012

References

lists.fedoraproject.org / pipermail/package-announce/2012-May/080645.html
lists.fedoraproject.org / pipermail/package-announce/2012-May/080648.html
lists.fedoraproject.org / pipermail/package-announce/2012-May/080747.html
bugzilla.novell.com / show_bug.cgi
bugzilla.redhat.com / show_bug.cgi
secunia.com / advisories/48970
Vendor Advisory
github.com / mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc
github.com / mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0
ExploitPatch
github.com / mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2
ExploitPatch
openwall.com / lists/oss-security/2012/04/25/8
openwall.com / lists/oss-security/2012/04/26/1