CyberRota Analysis
AI-GeneratedThe Mail library for Ruby, prior to version 2.9.1, is vulnerable to improper decoding of RFC 2047 encoded-words, which can lead to discrepancies between decoded email headers and their raw values. This flaw allows for potential sender or recipient spoofing, increasing the risk of phishing attacks and authorization-check bypass. Organizations utilizing this library for email handling should prioritize upgrading to version 2.9.1 to mitigate these risks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.