Description
Mail is an internet library for Ruby designed to handle email generation, parsing, and sending. Prior to 2.9.1, Mail::Utilities.q_value_decode and Mail::Utilities.b_value_decode used a single String#match and an overly greedy charset capture to decode only the first RFC 2047 encoded-word and mishandle surrounding or subsequent text. A crafted malformed encoded-word in an address display name or local part could cross ? delimiters and make decoded From, To, or Reply-To header values differ from the raw values inspected by a human reviewer or downstream parser, enabling apparent sender or recipient spoofing, phishing, or authorization-check bypass. This issue is fixed in version 2.9.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mikel | < 2.9.1 | — |
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.9.1-1 | — |
| Debian 13 | ruby-mail | No fix yet | — |
| Debian 12 | ruby-mail | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | jruby +1 | No fix yet | — |
| Ubuntu 26.04 LTS | jruby +1 | No fix yet | — |
| Ubuntu 24.04 LTS | jruby +1 | No fix yet | — |
| Ubuntu 22.04 LTS | ruby3.0 | No fix yet | — |
| Ubuntu 20.04 LTS | jruby | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | jruby | No fix yet | — |
| Ubuntu 16.04 LTS | jruby | No fix yet | — |
| Ubuntu Pro 20.04 LTS | ruby2.7 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | ruby2.5 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | ruby2.3 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | jruby | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | ruby3.2-kube-logging-operator-fluentd-outputs +1 | 6.8.0-r6 | — |
| Wolfi rolling | ruby3.3-mail | 2.9.1-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | < 2.9.1 | 2.9.1 | GHSA-mvxr-6m87-mv2q |