MediumGHSA-cj92-c4fj-w9c5CVE-2012-2139

Mail Gem Path Traversal vulnerability

Published 24 Oct 2017 · Updated 3 Dec 2024

Is your project on an affected mail?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

mailRubyGems
Affected
<2.4.4
Fixed in
2.4.4
Update to the fixed version for your release line, for example:bundle update --conservative mail # Gemfile: '>= 2.4.4'

Details

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.

Is GHSA-cj92-c4fj-w9c5 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected mail, and gives you the command that fixes it.

More advisories for mail

  • MediumCVE-2026-63435Mail: Email address spoofing via malformed RFC 2047 encoded-words · 2 Sept 2026
  • HighCVE-2012-2140Mail Gem Improper Input Validation vulnerability · 24 Oct 2017
  • MediumCVE-2011-0739Mail Improper Input Validation vulnerability · 24 Oct 2017
  • MediumCVE-2015-9097Mail Gem CRLF Injection vulnerability · 24 Oct 2017
mail security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.