Live threats
VulnFox

All CVEs / Rubygems

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mail Gem.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
rubygemsmail_gem≤ 2.4.3
rubygemsmail_gem2.3.2
rubygemsmail_gem2.3.3
rubygemsmail_gem2.4.1

Official sources

References

Links published by the sources. Open them with care.