CVE-2012-2139
MEDIUM 5.0CVSS 2.0Mail Gem Path Traversal vulnerability
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.
- Published
- 18 Jul 2012
- Last modified
- 16 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-cj92-c4fj-w9c5
- Sources
- NVDJSONOSV GHSA-cj92-c4fj-w9c5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubygems | mail_gemcpe:2.3:a:rubygems:mail_gem:*:*:*:*:*:*:*:* |
<= 2.4.3 | |
| NVD | rubygems | mail_gemcpe:2.3:a:rubygems:mail_gem:2.3.2:*:*:*:*:*:*:* |
= 2.3.2 | |
| NVD | rubygems | mail_gemcpe:2.3:a:rubygems:mail_gem:2.3.3:*:*:*:*:*:*:* |
= 2.3.3 | |
| NVD | rubygems | mail_gemcpe:2.3:a:rubygems:mail_gem:2.4.1:*:*:*:*:*:*:* |
= 2.4.1 | |
| OSV | RubyGems | < 2.4.4 | 2.4.4 |
References
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html · WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html · WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html · WEB
- http://secunia.com/advisories/48970 · Vendor Advisory
- http://www.openwall.com/lists/oss-security/2012/04/25/8 · WEB
- http://www.openwall.com/lists/oss-security/2012/04/26/1 · WEB
- https://bugzilla.novell.com/show_bug.cgi?id=759092 · WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=816352 · WEB
- https://github.com/mikel/mail/commit/29aca25218e4c82991400eb9b0c933626aefc98f · Exploit, Patch, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2012-2139 · ADVISORY
- https://github.com/mikel/mail · PACKAGE
History
- 25 Nov 2026 20:16 UTC · NVD: first stored (published 18 Jul 2012)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)