{"id":"CVE-2012-2140","published":"2012-07-18T18:00:00Z","modified":"2024-08-06T19:26:08Z","title":"The Mail gem before 2.4.3 for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in a…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04466,"percentile":0.91664,"provenance":"source"},"cwes":[],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=816352","tags":["x_refsource_MISC"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2012/04/25/8","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://bugzilla.novell.com/show_bug.cgi?id=759092","tags":["x_refsource_MISC"]},{"url":"http://secunia.com/advisories/48970","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.openwall.com/lists/oss-security/2012/04/26/1","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":18.33}]},"affected":[{"ecosystem":"RubyGems","package":"mail","vulnerableRanges":["<2.4.3"],"patched":["2.4.3"],"from":["GHSA-rp63-jfmw-532w"],"provenance":"source"}],"summary":{"text":"The Mail gem for Ruby, in versions before 2.4.3, contains a flaw in its sendmail and exim delivery handling that lets shell metacharacters in message data be interpreted. An attacker can exploit this remotely to execute arbitrary commands.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:15:30Z"},"euvd":{"id":"EUVD-2017-0304","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2011-0739","published":"2011-02-02","fixed":"2.2.15","kev":false,"link":{"from":"CVE-2011-0739","to":"CVE-2012-2140","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:mail","fromFixed":"2.2.15","toFixed":"2.4.3","daysApart":532},{"kind":"similar","provenance":"machine","score":0.58,"basis":"same package + description similarity"}]}},{"cve":"CVE-2012-2140","published":"2012-07-18","fixed":"2.4.3","kev":false},{"cve":"CVE-2012-2139","published":"2012-07-18","fixed":"2.4.4","kev":false,"link":{"from":"CVE-2012-2140","to":"CVE-2012-2139","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:mail","fromFixed":"2.4.3","toFixed":"2.4.4","daysApart":0}]}},{"cve":"CVE-2015-9097","published":"2017-06-12","fixed":"2.5.5","kev":false},{"cve":"CVE-2026-63435","published":"2026-09-01","fixed":"2.9.1","kev":false}],"package":"RubyGems:mail"}}