CVE-2012-2139Rubygems Mail Gem
Medium 5.0 No auth needed
- Priority
- 45
- CVSS 2.0
- 5.0
- EPSS
- —
- Auth required
- No
- Published
- Jul 18, 2012
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Mail Gem.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | mail |
< 2.4.4 |
2.4.4 |
gem "mail", ">= 2.4.4" |
Per OSV / GitHub Advisories (GHSA-cj92-c4fj-w9c5). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubygems | mail_gem | ≤ 2.4.3 |
| rubygems | mail_gem | 2.3.2 |
| rubygems | mail_gem | 2.3.3 |
| rubygems | mail_gem | 2.4.1 |
Official sources
References
Links published by the sources. Open them with care.