Skip to content
Fencer Intel
medium 5.0

CVE-2012-2139 json

Mail Gem Path Traversal vulnerability

published 2012-07-18 14 y ago modified 2026-06-16 4 mo ago also GHSA-cj92-c4fj-w9c5 , EUVD-2017-0219

cvss
5.0
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
4.9%
EPSS 4.9% chance of exploitation in 30 days, percentile 92%
public exploits
0
none known

Summary

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.

Patch / fix

  • rubygems mail 2.4.4
  • ruby-mail Debian 14, Debian 13, Debian 12 2.4.4-1

debian advisories DEBIAN-CVE-2012-2139

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2012-2139 updated cvss 5.0

rubygem-mail: directory traversal

  • Red Hat Subscription Asset Manager rubygem-mail
    affected: no fix available
  • Red Hat CloudForms Cloud Engine for RHEL 6 Server puppet 2.6.17-2.el6cf, rubygem-mail 2.3.0-3.el6cf, puppet-server 2.6.17-2.el6cf, rubygem-compass 0.11.5-2.el6cf, rubygem-net-ldap 0.1.1-3.el6cf, rubygem-chunky_png 1.2.0-3.el6cf, +6 more Red Hat CloudForms System Engine for RHEL 6 Server puppet 2.6.17-2.el6cf, rubygem-mail 2.3.0-3.el6cf, puppet-server 2.6.17-2.el6cf, rubygem-compass 0.11.5-2.el6cf, rubygem-net-ldap 0.1.1-3.el6cf, rubygem-chunky_png 1.2.0-3.el6cf, +6 more
    fixed: vendor fix RHSA-2012:1542

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

4.92% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/mikel/mail/commit/29aca25218e4c82991400eb9b0c933626aefc98f referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Affected packages

ecosystem package affected fixed in
rubygems mail
<2.4.4
2.4.4

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.