Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate exposed MyBB installer
-
DeliverySubmit crafted DB config value with backslash
-
ExploitEscape single-quoted PHP string in config.php
-
ExecutionInject arbitrary PHP
-
PersistConfig included on page load
-
ImpactExecute code as web server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, 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 web installer (install/index.php) to be reachable over HTTP - typically during initial setup, or on servers where the install/ directory was not deleted or locked after installation. The attacker must be able to submit database configuration values (dbengine, dbname, tableprefix, dbhost, dbuser, dbpass, or encoding) to the installer and must supply input containing a backslash to escape the single-quoted PHP string. Affected versions are strictly 1.8.13 through 1.8.39. The primary limiting factor is installer availability: a fully installed, properly hardened MyBB forum (install/ removed or locked) is not exploitable, so this is not a default-configuration RCE against a live, completed installation despite the AV:N/AC:L/PR:N/UI:N vector. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H) describes an unauthenticated, network, low-complexity full-compromise RCE, which drives the 9.8 score. However, the raw score is materially tempered by a critical precondition the vector does not capture: the installer must be reachable. MyBB installations normally lock or require removal of the install/ directory after setup, so in a correctly deployed forum the vulnerable code path is unreachable, making this primarily a threat during initial installation or on servers where install/ was never removed/locked. No EPSS score, KEV listing, POC, or SSVC decision data was provided, so exploitation probability cannot be quantified from the input; there is no evidence of active exploitation. In practice this is a genuine critical-severity bug but its real-world exploitability is gated by whether the installer remains exposed - a configuration-dependent condition rather than a universally exploitable default. |
| Exploit ScenarioDerived | An attacker discovers a MyBB server where the install/ directory was never removed (mid-installation or misconfigured deployment) and submits the installer's database configuration form with a crafted value containing a trailing backslash and appended PHP. The malformed value breaks out of the single-quoted string in the generated inc/config.php, so the injected PHP executes on every subsequent page load, giving the attacker code execution on the web server. No public POC is referenced, but the single-line fix commit clearly demonstrates the injection mechanics. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Remote code execution in MyBB 1.8.13 through 1.8.39 lets an attacker inject arbitrary PHP into the generated database configuration file when the web-based installer (install/index.php) remains accessible. The installer sanitizes database configuration values with addcslashes() but omits the backslash from its escaped-character set, so crafted input can break out of the single-quoted PHP string and execute attacker-controlled code. Rated CVSS 9.8; no public exploit identified at time of analysis, though the fixing commit publicly reveals the exact one-character root cause, lowering the barrier to weaponization.
RemediationAI
Vendor-released patch: MyBB 1.8.40 - upgrade to this version, which changes the addcslashes() escape set from "'" to "\\'" so the backslash is escaped (fix commit 0fe713e3b964bfc878ea65bdd9f746f585f6ebbf, https://github.com/mybb/mybb/releases/tag/mybb_1840). As an immediate compensating control on already-installed forums, delete or web-block the install/ directory (e.g. remove install/index.php or deny HTTP access to /install/), which fully removes the vulnerable code path with no impact on a completed installation; MyBB already recommends removing/locking this directory post-setup. If a fresh install is in progress and cannot yet be upgraded, restrict network access to the installer to trusted admin IPs until 1.8.40 is applied. Review advisory GHSA-gpc4-77rp-3xqr for details.
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 widely used open-source PHP forum application. The flaw is a CWE-94 (Code Injection) issue in the installer's create_tables() routine, which writes user-supplied database settings (type, database name, table prefix, hostname, username, password, encoding) into inc/config.php as single-quoted PHP string literals. The values are passed through addcslashes($value, "'") - a $characters argument introduced in MyBB 1.8.13 that escapes the single quote but not the backslash. Because a trailing backslash in the input is not itself escaped, it consumes the intended closing quote's escape and lets the attacker terminate the string and append arbitrary PHP, which is later executed when config.php is included. The CPE cpe:2.3:a:mybb:mybb identifies the affected component as the MyBB application itself.
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:H/I:H/A:H
Network unauthenticated RCE, but AC:H reflects the required non-default precondition that the installer remains reachable; full compromise gives C/I/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
MyBB versions 1.8.13 through 1.8.39 contain a critical remote code execution vulnerability (CVE-2026-45117, CVSS 9.8) exploitable through publicly accessible web-based installer endpoints. Organizations running vulnerable versions with exposed installers face imminent risk of unauthorized system access and data compromise. No vendor patch is available, requiring immediate interim protective measures.
Remove or disable the install/index.php endpoint via filesystem deletion or web server configuration (Apache .htaccess, Nginx location directives, or firewall rules). For installations where the installer cannot be deleted, enforce strict access control policies restricting access to internal networks only. Deploy monitoring on web server logs to detect requests to install/ paths and trigger alerts for investigation.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-61020
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB