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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-mail | 2.4.4-1 | — |
| Debian 13 | ruby-mail | 2.4.4-1 | — |
| Debian 12 | ruby-mail | 2.4.4-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | < 2.4.4 | 2.4.4 | GHSA-cj92-c4fj-w9c5 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=816352
- FEDORA-2012-7535 vendor-advisory
- [oss-security] 20120425 CVE request: two flaws fixed in rubygem-mail 2.4.4 mailing-list
- FEDORA-2012-7692 vendor-advisory
- https://bugzilla.novell.com/show_bug.cgi?id=759092
- 48970 third-party-advisory
- https://github.com/mikel/mail/commit/29aca25218e4c82991400eb9b0c933626aefc98f
- FEDORA-2012-7619 vendor-advisory
- [oss-security] 20120425 Re: CVE request: two flaws fixed in rubygem-mail 2.4.4 mailing-list