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.
Published: 2026-09-01
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Email address spoofing via malformed RFC 2047 encoded-words
Action: Patch Now
AI Analysis

Impact

The Mail gem is a Ruby library for creating and parsing email messages. A flaw existed in the decoding routine for RFC 2047 encoded‑words that only processed the first encoded‑word and did not properly isolate surrounding text. As a result, a crafted malformed encoded‑word in an address display name or local part could be decoded in a way that made the From, To, or Reply‑To header values appear different from the raw header values reviewed by humans or consumed by downstream parsers. This mismatch enables attackers to spoof sender or recipient addresses, facilitate phishing campaigns, or bypass authorization checks that rely on parsed address fields.

Affected Systems

The vulnerability affects the mikel:mail library (Mail gem) in all releases before version 2.9.1. Applications that embed or require the gem in a Ruby environment and process incoming or outgoing email headers are susceptible as long as they use an unpatched version.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, but the lack of an EPSS score and absence from CISA KEV suggests the exploitation likelihood is not well quantified. The most plausible attack vector is a remote attacker sending a maliciously crafted email that an application using the vulnerable gem parses. If the application trusts the decoded header for authentication or display, the spoofed address can deceive users or undermine authorization logic. The impact is limited to environments where address verification is performed on the parsed values rather than the raw headers, and no immediate requirement for system privileges is disclosed.

Generated by OpenCVE AI on September 2, 2026 at 00:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Mail gem to version 2.9.1 or later to apply the backing fix.
  • If upgrading immediately is not possible, configure email parsing to reject or reject any token that contains a malformed RFC 2047 encoded‑word, or enforce a stricter decoding routine that validates the encoded‑word against RFC 2047 syntax.
  • Enable detailed logging of any mismatch between decoded and raw address fields so that suspicious spoofed headers can be detected and reviewed.

Generated by OpenCVE AI on September 2, 2026 at 00:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mvxr-6m87-mv2q Mail: Email address spoofing via malformed RFC 2047 encoded-words
History

Wed, 02 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
First Time appeared Mikel
Mikel mail
Vendors & Products Mikel
Mikel mail

Wed, 02 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Title Mail: Email address spoofing via malformed RFC 2047 encoded-words
Weaknesses CWE-436
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-02T15:44:56.368Z

Reserved: 2026-07-16T19:35:57.767Z

Link: CVE-2026-63435

cve-icon Vulnrichment

Updated: 2026-09-02T15:44:51.475Z

cve-icon NVD

Status : Deferred

Published: 2026-09-01T21:18:35.287

Modified: 2026-09-09T21:09:13.080

Link: CVE-2026-63435

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T16:43:47Z

Weaknesses