Description
MyBB is free and open source forum software. From 1.8.13 until 1.8.40, the installer module does not properly escape user-supplied database configuration values written to the configuration file, resulting in PHP code injection and remote code execution when the installer is available. install/index.php processes the values with addcslashes(), but the $characters argument added in MyBB 1.8.13 does not include the backslash character, allowing crafted input to escape the generated PHP string. The uniquely identifying implementation details include introduced in MyBB 1.8.13. This issue is fixed in version 1.8.40.
Published: 2026-08-18
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in MyBB’s installer module allows crafted database configuration values to be written to the server’s configuration file without proper escaping. The addcslashes() function used by install/index.php does not escape backslashes in MyBB versions 1.8.13 through 1.8.40, enabling attackers to inject PHP code that is subsequently executed. This weakness is classified as CWE‑94, which signifies an untrusted input leading to code injection. The consequence is that an adversary who can access the installer can run arbitrary PHP commands, potentially taking complete control of the web server.

Affected Systems

The vulnerability affects MyBB forum software products released from version 1.8.13 to 1.8.40 inclusive. Any installation using those versions with the installer module enabled is susceptible. The defect was resolved in MyBB 1.8.40 and later releases.

Risk and Exploitability

With a CVSS score of 9.8, the flaw represents a critical severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, but the lack of a mitigated solution makes exploitation likely if the installer remains exposed. The attack path is straightforward: an attacker submits a malicious payload through the installer’s database configuration form, causing PHP injection when the installer writes the configuration file. Successful exploitation grants the attacker remote code execution on the host system.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade MyBB to version 1.8.40 or later.
  • If an upgrade is not possible, delete or relocate the install directory to eliminate access to install/index.php.
  • Restrict network or URL access to the installer using firewall rules or web‑server configuration so that only trusted administrators can reach it.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 18 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Mybb
Mybb mybb
Vendors & Products Mybb
Mybb mybb

Tue, 18 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
Description MyBB is free and open source forum software. From 1.8.13 until 1.8.40, the installer module does not properly escape user-supplied database configuration values written to the configuration file, resulting in PHP code injection and remote code execution when the installer is available. install/index.php processes the values with addcslashes(), but the $characters argument added in MyBB 1.8.13 does not include the backslash character, allowing crafted input to escape the generated PHP string. The uniquely identifying implementation details include introduced in MyBB 1.8.13. This issue is fixed in version 1.8.40.
Title MyBB: Installer database configuration RCE
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T18:58:22.820Z

Reserved: 2026-05-08T20:08:17.207Z

Link: CVE-2026-45117

cve-icon Vulnrichment

Updated: 2026-08-18T18:58:19.078Z

cve-icon NVD

Status : Received

Published: 2026-08-18T16:17:06.493

Modified: 2026-08-18T19:16:49.183

Link: CVE-2026-45117

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T18:00:04Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')