NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
💎 RubyGems
Not in CISA KEV

Mail Gem Path Traversal vulnerabilityGHSA-cj92-c4fj-w9c5

Fix: mikel/mail@29aca25

GHSA-cj92-c4fj-w9c5 is a Path Traversal vulnerability in mail. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for mail — see the affected versions and patch details below.

Also known asCVE-2012-2139
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
1 known
Exploitation data as of Nov 23, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
4.8%probability of exploitation in next 30 days
Lower Risk-0.13%
Lower risk than most CVEs92th percentile — riskier than 92% of all scored CVEsHighest risk
3.03%3.83%4.62%5.42%3.5%4.8%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

1 pkg affected
💎mail

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
💎RubyGemsmailall versions2.4.4bundle update mail --conservative

Affected Products

1 product · 4 configurations
Application
mail gemrubygems
≤ 2.4.3
3 versions
2.3.22.3.32.4.1
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for mail, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update mail to 2.4.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-cj92-c4fj-w9c5 is resolved across your whole dependency graph.

  3. Workarounds

    Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatLow
ProductFixed inAdvisory
CloudForms for RHEL 6converge-ui-devel-0:1.0.4-1.el6cfRHSA-2012:1542

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is GHSA-cj92-c4fj-w9c5 in your dependencies?

Find it across RubyGems, including transitive dependencies.

Mail Gem Path Traversal vulnerability