CVE-2012-2140: Input Validation

Published Apr 25, 2012
·
Updated

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.

Other sources

Two flaws were corrected in rubygem-mail version 2.4.4:

A file system traversal in filedelivery method [1].

Arbitrary command execution when using exim or sendmail from the commandline [2],[3].

[1] https://github.com/mikel/mail/commit/29aca25218e4c82991400eb9b0c933626aefc98f [2] https://github.com/mikel/mail/commit/36b7fa23d38cb59dd79b7efa258ef0e7ddab5a11 [3] https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2

Red Hat

Affected Software

5 affected componentsFixes available
rubygems/mail<2.4.3
2.4.3
redhat/rubgem-mail<2.4.4
2.4.4
Rubygems Mail Gem<=2.4.1
Rubygems Mail Gem=2.3.2
Rubygems Mail Gem=2.3.3

Event History

Apr 25, 2012
Data Sourced
via Red Hat·09:04 PM
DescriptionSeverityAffected Software
Jul 18, 2012
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Oct 24, 2017
Advisory Published
06:33 PM

Frequently Asked Questions

1

What is the severity of CVE-2012-2140?

CVE-2012-2140 is considered a critical vulnerability due to the potential for arbitrary command execution.

2

How do I fix CVE-2012-2140?

To fix CVE-2012-2140, upgrade the Mail gem to version 2.4.4 or later.

3

Which versions of the Mail gem are affected by CVE-2012-2140?

CVE-2012-2140 affects Mail gem versions before 2.4.3, including 2.3.2 and 2.3.3.

4

Can CVE-2012-2140 be exploited remotely?

Yes, CVE-2012-2140 can be exploited remotely by attackers through shell metacharacters.

5

What impact does CVE-2012-2140 have on system security?

The impact of CVE-2012-2140 on system security can lead to unauthorized execution of commands, compromising the affected system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203