CVE-2026-45125

MyBB: Email User CRLF injection

Published Aug 18, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from the Email User controller that fails to sanitize the sender name field when the mail_handler defaults to PHP mail. It allows an attacker to inject arbitrary CRLF sequences into the Return-Path and Reply‑To headers, effectively forging email headers. This could be abused to send spam, phishing emails, or manipulate the origin of notifications sent by the forum. The flaw is an instance of Header Injection, identified as CWE‑93.

Affected Systems

The affected product is MyBB, specifically the forum software versions prior to 1.8.40. Users with the cansendemail permission (both guests and authenticated users) are subject to this bug. The fix is included in MyBB 1.8.40 and later releases, which properly sanitizes the sender name.

Risk and Exploitability

The CVSS base score is 5.3, indicating moderate impact. While an exploit does not grant arbitrary code execution, it does enable manipulation of outbound email, which can be used for phishing or spam. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is likely web‑based, exploiting the member.php?action=do_emailuser endpoint. Without additional mitigations, the vulnerability could be leveraged by any user with permission to send emails via the forum.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install the latest MyBB release (1.8.40 or newer) to apply the patch that sanitizes the sender name field.
  • Limit the cansendemail permission to trusted users or groups to reduce the number of potential injection vectors.
  • Audit the mail_handler configuration; if the default PHP mail is used, consider switching to a library that validates headers or disabling return‑path manipulation.

Generated by OpenCVE AI on August 18, 2026 at 17:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Mybb
Mybb mybb
Vendors & Products Mybb
Mybb mybb
Type Values Removed Values Added
Description 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.
Title MyBB: Email User CRLF injection
Weaknesses CWE-93
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'}

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 18, 2026, 5:46 PM
Reserved
May 8, 2026, 8:08 PM
Status
Deferred
Published
Aug 18, 2026, 4:17 PM
Modified
Sep 8, 2026, 9:02 PM