{"id":"CVE-2012-2140","aliases":["DEBIAN-CVE-2012-2140","EUVD-2017-0304","GHSA-rp63-jfmw-532w"],"status":"published","title":"Mail Gem Improper Input Validation vulnerability","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04466,"percentile":0.91507,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2012-07-18T18:00:00Z","modified":"2026-10-23T17:47:34Z","fixes":[{"ecosystem":"RubyGems","package":"mail","fixed_in":["2.4.3"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"ruby-mail","fixed_in":["2.4.4-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"ruby-mail","fixed_in":["2.4.4-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"ruby-mail","fixed_in":["2.4.4-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"mail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"ruby-mail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.4-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"ruby-mail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.4-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"ruby-mail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.4-1"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"mail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.3"}]}],"versions":["1.0.0","1.1.0","1.2.1","1.2.5","1.2.6","1.2.8","1.2.9","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.4.0","1.4.1","1.4.2","1.4.3","1.5.0","1.5.1","1.5.2","1.5.3","1.5.4","1.6.0","2.0.3","2.0.5","2.1.0","2.1.1","2.1.2","2.1.3","2.1.5","2.1.5.1","2.1.5.2","2.1.5.3","2.2.0","2.2.1","2.2.10","2.2.11","2.2.12","2.2.13","2.2.14","2.2.15","2.2.16","2.2.17","2.2.18","2.2.19","2.2.2","2.2.20","2.2.3","2.2.4","2.2.5","2.2.5.1","2.2.5.2","2.2.6","2.2.6.1","2.2.7","2.2.9","2.2.9.1","2.3.0","2.3.2","2.3.3","2.4.0","2.4.1"]}],"products":[{"vendor":"rubygems","product":"mail_gem"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=816352","tags":["x_refsource_MISC","x_transferred","report","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","evidence","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2012/04/25/8","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://bugzilla.novell.com/show_bug.cgi?id=759092","tags":["x_refsource_MISC","x_transferred","report","web"]},{"url":"http://secunia.com/advisories/48970","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","evidence","fix","web"]},{"url":"https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2012/04/26/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-2140","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-rp63-jfmw-532w"},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-2140","tags":["advisory"]},{"url":"https://github.com/mikel/mail","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2012-2140","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.","status":"published","published":"2012-07-18T18:00:00Z","modified":"2024-08-06T19:26:08.465Z","updated_at":"2026-11-02T14:34:50.263482Z"}],"euvd":[{"id":"EUVD-2017-0304","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.","status":"published","published":"2012-07-18T18:00:00Z","modified":"2024-08-06T19:26:08Z","updated_at":"2026-11-03T01:56:14.86717Z"}],"ghsa":[{"id":"GHSA-rp63-jfmw-532w","title":"Mail Gem Improper Input Validation vulnerability","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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2023-09-05T22:04:32Z","cwes":["CWE-20"],"updated_at":"2026-11-02T14:37:02.095916Z"}],"nvd":[{"id":"CVE-2012-2140","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.","status":"published","published":"2012-07-18T18:55:01.51Z","modified":"2026-06-16T23:41:04.29Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:02:14.774945Z"}],"osv":[{"id":"CVE-2012-2140","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.","status":"published","published":"2012-07-18T18:55:01Z","modified":"2026-04-10T03:44:14.372923Z","updated_at":"2026-11-02T15:43:58.537032Z"},{"id":"DEBIAN-CVE-2012-2140","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.","status":"published","published":"2012-07-18T18:55:01.51Z","modified":"2026-10-23T17:47:34.158444482Z","updated_at":"2026-11-02T15:45:24.92418Z"},{"id":"GHSA-rp63-jfmw-532w","title":"Mail Gem Improper Input Validation vulnerability","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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2024-12-03T06:00:16.677168Z","cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:56.281047Z"}]}}
