{"id":"CVE-2012-2139","aliases":["GHSA-cj92-c4fj-w9c5"],"kind":"cve","tier":"cold","status":"published","title":"Mail Gem Path Traversal vulnerability","description":"Directory traversal vulnerability in lib/mail/network/delivery_methods/file_delivery.rb in the Mail gem before 2.4.4 for Ruby allows remote attackers to read arbitrary files via a .. (dot dot) in the to parameter.","ai_summary":null,"severity":"medium","cvss":{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"NVD"},"scores":[{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"nvd"}],"cwe":["CWE-22"],"remote":true,"remote_unauth":true,"epss":{"score":0.04791,"percentile":0.92712,"date":"2026-11-26"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"RubyGems","name":"mail","affected":"< 2.4.4","fixed":["2.4.4"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"Upgrade mail to 2.4.4 or later.","technologies":[],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html","kind":"vendor"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html","kind":"vendor"},{"url":"http://secunia.com/advisories/48970","kind":"vendor"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-2139","kind":"vendor"},{"url":"https://github.com/mikel/mail/commit/29aca25218e4c82991400eb9b0c933626aefc98f","kind":"patch"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=816352","kind":"other"},{"url":"http://www.openwall.com/lists/oss-security/2012/04/25/8","kind":"other"},{"url":"https://bugzilla.novell.com/show_bug.cgi?id=759092","kind":"other"},{"url":"http://www.openwall.com/lists/oss-security/2012/04/26/1","kind":"other"},{"url":"https://github.com/mikel/mail","kind":"other"}],"workarounds":null,"vendors":["rubygems"],"products":["mail_gem"],"cpes":["cpe:2.3:a:rubygems:mail_gem:*:*:*:*:*:*:*:*","cpe:2.3:a:rubygems:mail_gem:2.3.2:*:*:*:*:*:*:*","cpe:2.3:a:rubygems:mail_gem:2.3.3:*:*:*:*:*:*:*","cpe:2.3:a:rubygems:mail_gem:2.4.1:*:*:*:*:*:*:*"],"published_at":"2012-07-18T18:00:00.000Z","modified_at":"2026-06-16T23:41:04.160Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-2139"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-cj92-c4fj-w9c5","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2012-2139","markdown":"https://flawdb.com/CVE-2012-2139.md","json":"https://flawdb.com/api/v1/entries/CVE-2012-2139"}}