Breaking News: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2012-2140

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

Overview

Published
18 Jul 2012
Modified
29 Apr 2026
High CVE
1 Registry packages
1 OS packages
2 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 2.0 base score, scored by NVD.

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

Weakness: CWE-20

Affected packages · 1

Packages affected by CVE-2012-2140
EcosystemPackageVulnerableFixed in
RubyGems mail <2.4.3 2.4.32.4.4

Open a package to see all its vulnerabilities.

Operating systems · 5 fixes

debian 4 releases · 1 package

fixed 4
ruby-mail
debian fixes for CVE-2012-2140
ReleasePackageFixed in
11 ruby-mail 2.4.4-1
12 ruby-mail 2.4.4-1
13 ruby-mail 2.4.4-1
14 ruby-mail 2.4.4-1

echo 1 release · 1 package

fixed 1
ruby-mail
echo fixes for CVE-2012-2140
ReleasePackageFixed in
ruby-mail 2.4.4-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.