{"api_version":"1","generated_at":"2026-07-23T01:51:57+00:00","cve":"CVE-2012-2140","urls":{"html":"https://cve.report/CVE-2012-2140","api":"https://cve.report/api/cve/CVE-2012-2140.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2012-2140","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-2140"},"summary":{"title":"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.","state":"PUBLISHED","assigner":"redhat","published_at":"2012-07-18 18:55:01","updated_at":"2026-04-29 01:13:23"},"problem_types":["CWE-20","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc","name":"https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"mail/CHANGELOG.rdoc at 9beb079c70d236a5ad2e1ba95b2c977e55deb7af · mikel/mail · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2","name":"https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Patch"],"title":"Fix security vulnerability allowing command line exploit when using e… · mikel/mail@ac56f03 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0","name":"https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Patch"],"title":"Making sure that destinations are also properly escaped in all versio… · mikel/mail@39b590d · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=816352","name":"https://bugzilla.redhat.com/show_bug.cgi?id=816352","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"816352 – (CVE-2012-2140) CVE-2012-2140 rubygem-mail: arbitrary command execution when using exim or sendmail from commandline","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/48970","name":"http://secunia.com/advisories/48970","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"About Secunia Research | Flexera","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2012/04/26/1","name":"http://www.openwall.com/lists/oss-security/2012/04/26/1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"oss-security - Re: CVE request: two flaws fixed in rubygem-mail 2.4.4","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2012/04/25/8","name":"http://www.openwall.com/lists/oss-security/2012/04/25/8","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"oss-security - CVE request: two flaws fixed in rubygem-mail 2.4.4","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html","name":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[SECURITY] Fedora 15 Update: rubygem-actionmailer-3.0.5-3.fc15","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html","name":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[SECURITY] Fedora 17 Update: rubygem-actionmailer-3.0.11-2.fc17","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html","name":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[SECURITY] Fedora 16 Update: rubygem-actionmailer-3.0.10-2.fc16","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.novell.com/show_bug.cgi?id=759092","name":"https://bugzilla.novell.com/show_bug.cgi?id=759092","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Access Denied","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-2140","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-2140","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2012","cve_id":"2140","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rubygems","cpe5":"mail_gem","cpe6":"2.3.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2012","cve_id":"2140","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rubygems","cpe5":"mail_gem","cpe6":"2.3.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2012","cve_id":"2140","vulnerable":"1","versionEndIncluding":"2.4.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rubygems","cpe5":"mail_gem","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-06T19:26:08.465Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_MISC","x_transferred"],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=816352"},{"name":"FEDORA-2012-7535","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2"},{"name":"[oss-security] 20120425 CVE request: two flaws fixed in rubygem-mail 2.4.4","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2012/04/25/8"},{"name":"FEDORA-2012-7692","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://bugzilla.novell.com/show_bug.cgi?id=759092"},{"name":"48970","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/48970"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc"},{"name":"FEDORA-2012-7619","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html"},{"name":"[oss-security] 20120425 Re: CVE request: two flaws fixed in rubygem-mail 2.4.4","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2012/04/26/1"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2012-03-05T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2012-07-25T09:00:00.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","shortName":"redhat"},"references":[{"tags":["x_refsource_MISC"],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=816352"},{"name":"FEDORA-2012-7535","tags":["vendor-advisory","x_refsource_FEDORA"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2"},{"name":"[oss-security] 20120425 CVE request: two flaws fixed in rubygem-mail 2.4.4","tags":["mailing-list","x_refsource_MLIST"],"url":"http://www.openwall.com/lists/oss-security/2012/04/25/8"},{"name":"FEDORA-2012-7692","tags":["vendor-advisory","x_refsource_FEDORA"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html"},{"tags":["x_refsource_MISC"],"url":"https://bugzilla.novell.com/show_bug.cgi?id=759092"},{"name":"48970","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/48970"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc"},{"name":"FEDORA-2012-7619","tags":["vendor-advisory","x_refsource_FEDORA"],"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html"},{"name":"[oss-security] 20120425 Re: CVE request: two flaws fixed in rubygem-mail 2.4.4","tags":["mailing-list","x_refsource_MLIST"],"url":"http://www.openwall.com/lists/oss-security/2012/04/26/1"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"secalert@redhat.com","ID":"CVE-2012-2140","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=816352","refsource":"MISC","url":"https://bugzilla.redhat.com/show_bug.cgi?id=816352"},{"name":"FEDORA-2012-7535","refsource":"FEDORA","url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html"},{"name":"https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2","refsource":"CONFIRM","url":"https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2"},{"name":"[oss-security] 20120425 CVE request: two flaws fixed in rubygem-mail 2.4.4","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2012/04/25/8"},{"name":"FEDORA-2012-7692","refsource":"FEDORA","url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html"},{"name":"https://bugzilla.novell.com/show_bug.cgi?id=759092","refsource":"MISC","url":"https://bugzilla.novell.com/show_bug.cgi?id=759092"},{"name":"48970","refsource":"SECUNIA","url":"http://secunia.com/advisories/48970"},{"name":"https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0","refsource":"CONFIRM","url":"https://github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0"},{"name":"https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc","refsource":"CONFIRM","url":"https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc"},{"name":"FEDORA-2012-7619","refsource":"FEDORA","url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html"},{"name":"[oss-security] 20120425 Re: CVE request: two flaws fixed in rubygem-mail 2.4.4","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2012/04/26/1"}]}}}},"cveMetadata":{"assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","assignerShortName":"redhat","cveId":"CVE-2012-2140","datePublished":"2012-07-18T18:00:00.000Z","dateReserved":"2012-04-04T00:00:00.000Z","dateUpdated":"2024-08-06T19:26:08.465Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2012-07-18 18:55:01","lastModifiedDate":"2026-04-29 01:13:23","problem_types":["CWE-20","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:rubygems:mail_gem:*:*:*:*:*:*:*:*","versionEndIncluding":"2.4.1","matchCriteriaId":"8FB39856-2AE6-43F8-B7AE-B58CBB1AF693"},{"vulnerable":true,"criteria":"cpe:2.3:a:rubygems:mail_gem:2.3.2:*:*:*:*:*:*:*","matchCriteriaId":"5CCE5E86-3A46-4B27-8626-4106778E990B"},{"vulnerable":true,"criteria":"cpe:2.3:a:rubygems:mail_gem:2.3.3:*:*:*:*:*:*:*","matchCriteriaId":"B0743617-3C95-4DFE-B19B-425FE4A4876B"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2012","CveId":"2140","Ordinal":"1","Title":"CVE-2012-2140","CVE":"CVE-2012-2140","Year":"2012"},"notes":[{"CveYear":"2012","CveId":"2140","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2012-2140"},{"CveYear":"2012","CveId":"2140","Ordinal":"2","NoteData":"2012-07-18","Type":"Other","Title":"Published"},{"CveYear":"2012","CveId":"2140","Ordinal":"3","NoteData":"2012-07-25","Type":"Other","Title":"Modified"}]}}}