Skip to main content

Ruby mail gem EUVDEUVD-2026-69609

| CVE-2026-63435 MEDIUM
Interpretation Conflict (CWE-436)
2026-09-01 GitHub_M GHSA-mvxr-6m87-mv2q
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted email with malformed RFC 2047 encoded-word
  2. Delivery
    Mail gem invokes q_value_decode/b_value_decode on header
  3. Exploit
    Greedy single-match regex decodes only first boundary, absorbing delimiters
  4. Execution
    Decoded From/To value diverges from raw wire value
  5. Persist
    Application trusts decoded value for authz check or display
  6. Impact
    Phishing or authorization bypass succeeds

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
Exploitation Conditions

Exploitation requires that an attacker can deliver a crafted email (containing a malformed RFC 2047 encoded-word in the From, To, or Reply-To display name or local-part) to a system running an unpatched mail gem (< 2.9.1) that parses the message using Mail::Utilities.q_value_decode or b_value_decode. The CVSS PR:N and UI:N indicate no authentication to the target application and no user interaction by the processing application are required - the flaw triggers purely on receipt and parsing of the crafted message. Exploitation is limited to scenarios where the application consumes the decoded header value for trust decisions (authorization checks, sender verification allowlists) or displays it to a human reviewer in a security-sensitive context; applications that treat all decoded display names as untrusted user input and do not make authorization decisions from them are not meaningfully exploited beyond cosmetic display differences.

Impact

The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N, score 5.3) is consistent with the vulnerability: network-reachable, no authentication, no user interaction required by the processing application, low integrity impact. The I:L rating may understate impact in environments where decoded header values feed authorization logic - if an application gates actions on the decoded From address matching a trusted sender, header manipulation could constitute a meaningful security control bypass. No EPSS data was supplied; without active exploitation (no KEV entry) and no public POC, real-world risk is moderate and primarily affects email-processing pipelines that make trust decisions based on decoded header values rather than treating them as display-only. Applications that only render decoded headers to end-users are exposed to phishing risk. Applications that programmatically compare decoded sender/recipient values against allowlists are exposed to authorization bypass. The CVSS accurately captures the mechanics but defenders should weigh impact based on how decoded header values are consumed downstream.

Exploit ScenarioDerived

An attacker sends an email with a crafted From header such as 'From: =?UTF-8?Q?trusted-sender?Q?@corp.example.com?=@attacker.com' to a Ruby application that parses inbound mail using the unpatched mail gem. The vulnerable q_value_decode processes only the first encoded-word boundary greedily, causing the decoded From value to appear as 'trusted-sender@corp.example.com' even though the actual envelope or raw header points to attacker.com. If the application grants elevated privileges or routes messages based on the decoded From address, the attacker bypasses the authorization check; if the decoded value is displayed to a human reviewer, phishing succeeds because the spoofed address looks legitimate.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 01, 2026

Header-value interpretation conflict in the Ruby mail gem (mikel/mail) before 2.9.1 allows remote attackers to craft malformed RFC 2047 encoded-words that cause Mail::Utilities.q_value_decode and b_value_decode to produce decoded From, To, and Reply-To values that differ materially from the raw wire values seen by human reviewers or downstream parsers. Because the old implementation used String#match with an overly greedy charset capture (.+? crossing ? delimiters) rather than a global gsub with a constrained character class, a single crafted encoded-word could swallow surrounding text, enabling apparent sender spoofing, phishing, and authorization-check bypass in any Ruby application relying on these decoded values for trust decisions. No public exploit or KEV listing is present at time of analysis, and the fix is confirmed in version 2.9.1.

RemediationAI

Upgrade the mikel/mail gem to version 2.9.1 or later, which is confirmed to contain the fix (GitHub release https://github.com/mikel/mail/releases/tag/2.9.1, commit f9d59c2e447af42e2c3dec5a56b1bb25c7292859). Update Gemfile.lock accordingly and redeploy. If immediate upgrade is not feasible, applications should avoid using Mail::Utilities.q_value_decode or b_value_decode output as an authoritative identity source for authorization decisions; instead, compare raw (unparsed) header values from the MIME message against trusted-sender allowlists, since the raw values are not subject to the decoding ambiguity. Note that this workaround has the trade-off of making display names non-human-readable in any UI rendering. No additional compensating controls exist that fully neutralize the spoofing surface without patching, because the flaw is in the library's core decoding path.

Affected VersionsENISA

Mail < 2.9.1

Affected Packages

rubygems mail fix: 2.9.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in rubygems

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected library is the mikel/mail Ruby gem (CPE cpe:2.3:a:mikel:mail:*:*:*:*:*:*:*:*), the de-facto standard email library used by Ruby on Rails and many Ruby applications for generating, parsing, and sending email. The flaw is classified as CWE-436 (Interpretation Conflict): the library's q_value_decode and b_value_decode utility methods each used String#match, which returns only the first regex match, paired with a greedy capture group (.+ for charset) that could consume ? delimiter characters and span multiple encoded-word boundaries per RFC 2047. The fix (PR #1664, commit f9d59c2e) replaces str.match(...) with str.gsub(...) and tightens the charset capture to [^?]+ so every encoded-word in a string is decoded individually, and no encoded-word can absorb adjacent unencoded text or subsequent encoded-words. The root cause is a mismatch between what the old single-match regex decoded and what the full raw header string actually contained, creating a semantic gap exploitable for header spoofing.

Know when Mail gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 5.3 MEDIUM

Network-delivered via email, no auth or user interaction required by the parser; integrity impact is low (header value manipulation, not arbitrary write).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.4 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Sep 01, 2026 - 22:03 EUVD
CVE Published
Sep 01, 2026 - 20:09 cve.org
MEDIUM 5.3

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
High
de-facto standard email library for Ruby on Rails applications
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Mail

View all
CVE-2017-15806 HIGH POC
8.1 Nov 15

The send function in the ezcMailMtaTransport class in Zeta Components Mail before 1.8.2 does not properly restrict the s

CVE-2019-17123 HIGH POC
7.5 Dec 13

The eGain Web Email API 11+ allows spoofed messages because the fromName and message fields (to /system/ws/v11/ss/email)

CVE-2015-9097 MEDIUM POC
6.1 Jun 12

The mail gem before 2.5.5 for Ruby (aka A Really Ruby Mail Library) is vulnerable to SMTP command injection via CRLF seq

CVE-2023-48307 CRITICAL
9.8 Nov 21

Nextcloud Mail is the mail app for Nextcloud, a self-hosted productivity platform. Rated critical severity (CVSS 9.8), t

CVE-2022-31132 CRITICAL
9.8 Aug 04

Nextcloud Mail is an email application for the nextcloud personal cloud product. Rated critical severity (CVSS 9.8), thi

CVE-2016-4879 HIGH
8.8 May 12

Cross-site request forgery (CSRF) vulnerability in baserCMS plugin Mail version 3.0.10 and earlier allows remote attacke

CVE-2023-23943 MEDIUM POC
4.3 Feb 06

Nextcloud mail is an email app for the nextcloud home server platform. Rated medium severity (CVSS 4.3), this vulnerabil

CVE-2021-32707 MEDIUM POC
4.3 Jul 12

Nextcloud Mail is a mail app for Nextcloud. Rated medium severity (CVSS 4.3), this vulnerability is remotely exploitable

CVE-2021-32652 MEDIUM POC
4.3 Jun 01

Nextcloud Mail is a mail app for the Nextcloud platform. Rated medium severity (CVSS 4.3), this vulnerability is remotel

CVE-2019-10735 MEDIUM POC
4.3 Apr 07

In Claws Mail 3.14.1, an attacker in possession of S/MIME or PGP encrypted emails can wrap them as sub-parts within a cr

CVE-2024-52508 HIGH
8.1 Nov 15

Nextcloud Mail is the mail app for Nextcloud, a self-hosted productivity platform. Rated high severity (CVSS 8.1), this

CVE-2020-8156 HIGH
7.0 May 12

A missing verification of the TLS host in Nextcloud Mail 1.1.3 allowed a man in the middle attack. Rated high severity (

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP4 Affected
SUSE Linux Enterprise High Availability Extension 15 SP5 Affected
SUSE Linux Enterprise High Availability Extension 15 Affected
SUSE Linux Enterprise High Availability Extension 15 SP1 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy