Mail: Email address spoofing via malformed RFC 2047 encoded-words
CVE-2026-63435GHSA-mvxr-6m87-mv2q
What to do
Vendor fix available. Upgrade each affected package to the fixed version on its release line (mail 2.9.1), redeploy, then verify what is actually installed.
This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.
Affected packages
RubyGems mail
- Affected
- < 2.9.1
- Fixed in
- 2.9.1
Sources
- Open Source Vulnerabilities (OSV.dev), including the GitHub Advisory Database
OSV record GHSA-mvxr-6m87-mv2q lists affected ranges: RubyGems mail >=0 <2.9.1 (fixed)
VerifiedObserved Structured OSV record; GitHub-reviewed advisory.
- GitHub Advisory Database and maintainer security advisories on GitHub
GitHub-reviewed advisory GHSA-mvxr-6m87-mv2q lists affected ranges: RubyGems mail >=0 <2.9.1
VerifiedObserved Structured GitHub Advisory Database record (type=reviewed) from the GitHub REST API.
Severity and exploitation
- Exploitation
- No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
- CVSS
- 5.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS
- CVE-2026-63435: 0.45% estimated exploitation activity in the next 30 days; percentile 39.00 (FIRST EPSS, 2026-11-03). This is a model estimate, not proof of exploitation or customer exposure.
Source description
As published by the source; long descriptions are shortened.
Summary Mail::Utilities.qvaluedecode and Mail::Utilities.bvaluedecode 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. Details Both decoders used a single String#match against a pattern such as /\=\?(.+)?\?[Qq]\?(.)\?\=/m. Two problems: 1. Single match, dropped remainder. Only the first =?charset?Q?...?= (or ?B?) word was decoded. Any additional encoded-words or surrounding text were not handled consistently, so the decoded result could silently omit or alter parts of the input. 2. Greedy charset capture. (.+)? is greedy and matches across ? delimiters, so a malformed word could span more of the string than a strict RFC 2047 parse would, changing the boundary…
Dates and revisions
- Published by the source
- Last modified by the source
- Source last checked
- Revision 2 · amended ·
Amended from ghsa record GHSA-mvxr-6m87-mv2q
- Revision 1 · created ·
Published from osv record GHSA-mvxr-6m87-mv2q
Agent brief
Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.
# Patch Next advisory brief: CVE-2026-63435 Advisory: Mail: Email address spoofing via malformed RFC 2047 encoded-words IDs: CVE-2026-63435, GHSA-mvxr-6m87-mv2q Record: https://patchnext.com/advisories/cve-2026-63435 (revision 2, source checked 26 Oct 2026, 15:52 UTC) Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected. Severity: Medium (CVSS 5.3) Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV. Vendor response: Vendor fix available; fixed versions by package: mail 2.9.1. A vendor fix does not mean a deployment is fixed. ## Affected components - RubyGems mail: affected < 2.9.1; fixed in 2.9.1 ## Suggested inspection (read-only) - RubyGems mail: check the installed version with your package manager. ## Supported action Upgrade each affected component to a fixed version on its release line. For a transitive dependency, upgrade the parent package or add an override or constraint, then regenerate the lockfile. Redeploy every environment that ran an affected version. ## Required regression checks - Run the test suite and a production build. - Exercise the features that depend on mail. - Repeat the inspection and confirm that only fixed versions remain installed. ## Rollback considerations - Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward. ## Unresolved questions - Which deployments run an affected version? - Exploitation status can change. Check again before lowering the priority. - Mark the work resolved only after the fixed version is verified in production. ## Sources - Verified: https://osv.dev/vulnerability/GHSA-mvxr-6m87-mv2q (OSV record GHSA-mvxr-6m87-mv2q lists affected ranges: RubyGems mail >=0 <2.9.1 (fixed)) - Verified: https://github.com/advisories/GHSA-mvxr-6m87-mv2q (GitHub-reviewed advisory GHSA-mvxr-6m87-mv2q lists affected ranges: RubyGems mail >=0 <2.9.1) Commands are suggestions: review each one before running it.
Loading voting…