Skip to main content

Forem CVE-2026-48780

| EUVDEUVD-2026-37120 HIGH
Improper Authentication (CWE-287)
2026-06-16 GitHub_M
8.2
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Identify invite-only Forem instance with domain allowlist
  2. Delivery
    Craft RFC 2047 encoded-word email payload
  3. Exploit
    Submit to /users or /magic_links endpoint
  4. Install
    Allowlist validates raw domain string
  5. C2
    Mail layer decodes to attacker-controlled address
  6. Execute
    Receive magic link / confirmation at attacker inbox
  7. Impact
    Access gated community as new member

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK

2 techniques across 2 tactics: Defense Evasion, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target Forem deployment to enforce registration restrictions via a domain allowlist (Settings::Authentication.allowed_registration_email_domains) or denylist - i.e., invite-only or domain-gated communities; on fully open instances the bypass has no security boundary to defeat. The attacker must reach the public /users registration endpoint, the /magic_links endpoint, or an OAuth/identity callback handled by Authentication::Authenticator, with no prior authentication and no user interaction. Successful end-to-end account takeover additionally depends on the configured outbound SMTP provider actually delivering an RFC 2047 encoded-word recipient address, which some providers refuse - limiting reliability against hardened mail infrastructure.

Impact

CVSS 8.2 (AV:N/AC:L/PR:N/UI:N/C:H/I:L/A:N) reflects network-reachable, unauthenticated, low-complexity exploitation against confidentiality of invite-only communities - a realistic profile for a registration endpoint. EPSS and KEV data were not provided, and no public exploit is identified at this time, but the upstream patch and detailed regression tests publicly disclose the exact payload shape, lowering the barrier to weaponization. The real-world risk is concentrated on Forem operators who rely on domain allowlists (e.g., enterprise/private communities) rather than on open public instances where signups are unrestricted; for those operators this should be treated as a priority patch. A secondary uncertainty: as the advisory notes, some SMTP providers refuse to deliver encoded-word addresses, which may blunt exploitation against magic-link / confirmation flows that require a deliverable inbox.

Exploit ScenarioDerived

An attacker targeting an invite-only Forem instance that allowlists 'company.com' submits the registration email '=?utf-8?q?test=40attacker.com=3e?=@company.com'; the allowlist check sees the literal domain 'company.com' and accepts it, but the mail subsystem decodes the address toward 'test@attacker.com', so the magic-link or confirmation email is delivered to the attacker's mailbox. The attacker completes account creation and gains access to the gated community. No public proof-of-concept is identified at time of analysis, but the upstream commit and tests publish the exact payload structure.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 16, 2026

Authentication bypass in Forem (prior to commit a2ab6d4) allows remote attackers to circumvent email domain allowlist/denylist controls by submitting RFC 2047 encoded-word email addresses, enabling unauthorized registration on invite-only deployments. The flaw arises because the raw email string passes domain checks while downstream mail decoding resolves it to an attacker-controlled address, with no public exploit identified at time of analysis.

RemediationAI

Upstream fix available (commit a2ab6d409d2676eb0711ecbd737192043125b437); released patched version not independently confirmed, so self-hosted operators should rebuild/redeploy Forem from main at or after that commit per https://github.com/forem/forem/commit/a2ab6d409d2676eb0711ecbd737192043125b437 and the advisory at https://github.com/forem/forem/security/advisories/GHSA-3g4h-9h37-mpx6. As a stopgap before redeploying, add an application- or proxy-layer filter that rejects registration, magic-link, and OAuth callback requests whose email field matches the RFC 2047 encoded-word pattern /=\?[^?]+\?[BbQq]\?[^?]+\?=/, accepting that legitimate users with unusual but valid local parts containing literal '=?' sequences could be falsely blocked. Operators may also lean on the vendor-noted workaround that many SMTP providers drop encoded-word recipients, but this is unreliable and should not be the sole control. Monitor user creation logs for any addresses containing '=?' and '?=' substrings to detect prior exploitation.

Affected VersionsENISA

forem < a2ab6d4

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

Forem is a Ruby on Rails platform powering community forums (notably dev.to). The vulnerability stems from inconsistent email parsing: domain allowlist/denylist logic in Settings::Authentication.acceptable_domain? evaluates the raw RFC 5322 domain portion (e.g., 'company.com'), while the Mail gem's Mail::Encodings.value_decode rewrites RFC 2047 encoded-word local parts such as '=?utf-8?q?test=40attacker.com=3e?=@company.com' into 'test@attacker.com>@company.com', producing a different effective recipient. This is a classic CWE-287 authentication bypass via parser differential - the validator and the consumer disagree on what the email string means. The patch (commit a2ab6d409d2676eb0711ecbd737192043125b437) adds a reject_encoded_word_email ActiveRecord validation on the User model that flags any address matching the encoded-word regex /=\?[^?]+\?[BbQq]\?[^?]+\?=/.

Know when Forem 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 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
vuln.today AI 6.5 MEDIUM

Remote unauthenticated bypass via registration endpoint; impact is unauthorized access to a gated community (limited confidentiality and integrity, no high-value data class guaranteed), no availability impact.

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

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
High
Integrity
Low
Availability
None

DescriptionCVE.org

Forem is open source software for building communities. Prior to commit a2ab6d4, a maliciously crafted email address could allow an attacker to bypass domain allowlist or denylist restrictions and gain access to invite-only forem deployments. The issue is patched as of a2ab6d4. As a workaround, some SMTP servers and email delivery providers may drop or refuse to send maliciously crafted email addresses.

Executive ViewAI

Why It Matters

Forem instances using email domain restrictions to control user registration are vulnerable to account creation bypass, allowing attackers to register accounts that circumvent intended access controls. This directly undermines organizations' ability to restrict membership to authorized users, affecting any Forem deployment used for sensitive collaboration or invite-only communities. The vulnerability exposes restricted platforms to unauthorized user access without requiring administrator intervention.

Business Impact: High
Compensating Controls

Disable self-service user registration and require manual provisioning by administrators only; implement email domain validation rules at network gateway or Web Application Firewall layer before traffic reaches Forem; restrict Forem platform network access to internal-only connectivity; deploy enhanced logging and alerting on account creation attempts; require multi-factor authentication or additional identity verification for all new accounts; conduct manual security review of all accounts created since deployment.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
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.

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