CVE-2012-2140

high
Published 2012-03-14 · Modified 2024-12-03
CVSS v3
CVSS v2
7.5
VIR risk
7.5

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2012-2140

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — http://secunia.com/advisories/48970

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed2.4.4-1
debian debianbullseyefixed2.4.4-1
debian debianforkyfixed2.4.4-1
debian debiansidfixed2.4.4-1
debian debiantrixiefixed2.4.4-1

Package impact

EcosystemPackageVulnerableFixed
ruby RubyGemsmail<>= 2.4.4>= 2.4.4
ruby RubyGemsmail<2.4.32.4.3

Application impact

VendorProductVersionsFixed
rubygemsmail_gem{"endIncluding":"2.4.1"}
rubygemsmail_gem2.3.2
rubygemsmail_gem2.3.3

References

CWEs

CWE-20

Verify integrity in audit chain (admin only). AS-IS.