Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify MyBB forum with guest email or cansendemail permission enabled
-
DeliveryCraft POST to member.php?action=do_emailuser with CRLF payload in fromname
-
ExploitPHP mail() receives unsanitized sender name in header fields
-
ExecutionCRLF sequences delimit injected Bcc or Reply-To headers
-
PersistForum MTA sends email with attacker-controlled headers
-
ImpactForum mail server relays phishing or spam to injected recipients
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
|
| Exploitation Conditions | Two configuration prerequisites must be simultaneously present. First, the MyBB board setting |
| Impact | The NVD CVSS score of 5.3 (Medium, AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N) reflects a fully remote, unauthenticated, low-complexity attack with limited integrity impact. However, this score assumes both non-default configuration conditions are simultaneously active, which the CNA did not factor into AC. In practice, enabling guest |
| Exploit ScenarioDerived | An unauthenticated attacker targeting a MyBB forum with guest email enabled submits a POST request to |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Mail header injection in MyBB's Email User feature (prior to 1.8.40) allows CRLF sequences embedded in the unsanitized fromname HTTP parameter to inject arbitrary SMTP headers - including Bcc, Reply-To, and Return-Path - into outgoing forum emails. The attack surface is conditional on two prerequisites: the mail_handler must be set to PHP (the default) and the cansendemail group permission must be enabled for the attacker's user group, including guests for the unauthenticated path. No public exploit code exists and this vulnerability is not listed in CISA KEV, but successful exploitation turns the forum's mail infrastructure into a phishing or spam relay, weaponizing the forum's domain reputation against recipients.
RemediationAI
Upgrade to MyBB 1.8.40, which is the vendor-confirmed patched release available at https://mybb.com/versions/1.8.40 and https://github.com/mybb/mybb/releases/tag/mybb_1840. For sites unable to upgrade immediately, two compensating controls are available with distinct trade-offs: first, revoke the cansendemail permission from the guest user group in the ACP group permissions panel - this eliminates the unauthenticated attack surface but prevents guests from contacting members via the built-in email form; second, change the mail_handler board setting from php to smtp - this alters header construction to a path that handled the fromemail separately, reducing but not eliminating exposure, and requires a configured SMTP server. The upstream fix (commit 5046c56b515d4593297a4f65b0c6ccb0b55baa01) should be treated as the authoritative resolution; workarounds are temporary measures only.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MyBB is a PHP-based open-source forum platform; the affected code paths are inc/class_mailhandler.php and member.php. The root cause is CWE-93 (Improper Neutralization of CRLF Sequences): the build_message() method in the mail handler assembled Return-Path and Reply-To headers from user-controlled input - specifically $this->from, $this->from_named, and $this->return_email - without first calling the class's own $this->cleanup() sanitization method. The commit diff (5046c56b515d4593297a4f65b0c6ccb0b55baa01) confirms the fix adds three cleanup() calls on those fields before header construction, plus sanitization of the HTTP Host header used in Message-ID. The flaw is scoped to the PHP mail() handler because PHP passes sender arguments directly to the underlying MTA in ways that do not strip CRLF; the SMTP handler code path had a separate construction flow, though the fix also cleans up shared fields used by both paths. CPE cpe:2.3:a:mybb:mybb:*:*:*:*:*:*:*:* covers all versions prior to 1.8.40.
Know when Mybb 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
AC:H reflects the non-default guest cansendemail prerequisite outside attacker control; PR:N retains the unauthenticated guest path; I:L for header injection with no confidentiality or availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
MyBB is free and open source forum software. Prior to 1.8.40, the Email User controller does not sanitize sender names correctly, resulting in mail header injection. member.php?action=do_emailuser accepts the fromname HTTP parameter for guests or the stored username for authenticated users when the cansendemail group permission is enabled. When mail_handler is set to the default PHP mail value, the sender name is used without sanitization in Return-Path and Reply-To headers, allowing arbitrary headers to be injected with CRLF sequences. This issue is fixed in version 1.8.40.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
MyBB is a free and open source forum software. Rated high severity (CVSS 7.2), this vulnerability is remotely exploitabl
The installer in MyBB before 1.8.13 allows remote attackers to execute arbitrary code by writing to the configuration fi
SQL Injection vulnerability in MyBB before 1.8.26 via poll vote count. Rated high severity (CVSS 8.8), this vulnerabilit
SQL Injection vulnerablity in MyBB before 1.8.26 via theme properties included in theme XML files. Rated high severity (
In MyBB before 1.8.21, an attacker can exploit a parsing flaw in the Private Message / Post renderer that leads to [vide
Privilege escalation in MyBB 1.8.40 lets a limited Admin Control Panel (ACP) user who holds only the delegated user-mana
MyBB before 1.8.11 allows remote attackers to bypass an SSRF protection mechanism. Rated high severity (CVSS 7.7), this
SQL injection vulnerability in member.php in MyBB (aka MyBulletinBoard) 1.8.x before 1.8.2 allows remote attackers to ex
An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Change Avatar function. Rated h
An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Import a Theme function. Rated
An issue in MyBB 1.8.38 allows a remote attacker to obtain sensitive information via the Mail function. Rated high sever
Multiple SQL injection vulnerabilities in ajaxfs.php in the Ajax forum stat (Ajaxfs) Plugin 2.0 for MyBB (aka MyBulletin
EUVD-2026-61011
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB