Description
The Mail gem before 2.4.3 for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in a (1) sendmail or (2) exim delivery.
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.3 | 2.4.3 | GHSA-rp63-jfmw-532w |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=816352
- FEDORA-2012-7535 vendor-advisory
- https://github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2
- [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/39b590ddb08f90ddbe445837359a2c8843e533d0
- https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc
- FEDORA-2012-7619 vendor-advisory
- [oss-security] 20120425 Re: CVE request: two flaws fixed in rubygem-mail 2.4.4 mailing-list