{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2012-2140","id":"CVE-2012-2140","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.","descriptionLong":"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.","published":"2012-07-18T18:00:00.000Z","updated":"2026-06-16T23:41:04.290Z","reserved":"2012-04-04T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"},"metrics":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"mail","purl":"pkg:gem/mail","ranges":["<2.4.3"],"fixed":["2.4.3"],"advisory":"GHSA-rp63-jfmw-532w"}],"cwes":["CWE-20"],"aliases":["GHSA-rp63-jfmw-532w"],"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/mikel/mail","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.04466,"epssPercentile":0.91628,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2012-2140","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-2140","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2012-2140","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rp63-jfmw-532w","ok":true,"note":"GHSA-rp63-jfmw-532w"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2012-2140","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}