RubySec

Providing security resources for the Ruby community

GHSA-mvxr-6m87-mv2q (mail): Email address spoofing via malformed RFC 2047 encoded-words in mail

Email address spoofing via malformed RFC 2047 encoded-words in mail

Published: July 01, 2026

SECURITY IDENTIFIERS

GEM

mail

SEVERITY

CVSS v3.x: 5.1 (Medium)

PATCHED VERSIONS

>= 2.9.1

DESCRIPTION

Summary

Mail::Utilities.q_value_decode and Mail::Utilities.b_value_decode decoded only the first RFC 2047 encoded-word in a string and used an overly greedy pattern to match the charset token. A crafted, malformed encoded-word embedded in an address display name or local part could cause the decoded output to differ from what a human reviewer or downstream parser would expect, allowing an attacker to spoof the apparent sender/recipient address.

RELATED