CVE-2012-2140

CVE-2012-2140 is a high-severity vulnerability in Rubygems Mail Gem with a CVSS 2.0 base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-20.

Key facts

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.

Frequently asked questions

What is CVE-2012-2140?
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.
How severe is CVE-2012-2140?
CVE-2012-2140 has a CVSS 2.0 base score of 7.5, rated high severity.
Is CVE-2012-2140 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (90th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2012-2140?
CVE-2012-2140 primarily affects Rubygems Mail Gem. In total, 3 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2012-2140?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
When was CVE-2012-2140 published?
CVE-2012-2140 was published on 2012-07-18 and last updated on 2026-06-16.

References

Affected products (3)

More vulnerabilities in Rubygems Mail Gem

All CVEs affecting Rubygems Mail Gem →

Other CWE-20 (Improper Input Validation) vulnerabilities

Browse all CWE-20 (Improper Input Validation) vulnerabilities →