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.
Security readout for executives and security teams
Plain-English summary
MyBB versions 1.8.13 through 1.8.39 can allow an unauthenticated attacker to take control of the forum server when the installer remains available. Crafted database settings can become executable PHP code, enabling data theft, modification, or service disruption. MyBB 1.8.40 fixes the issue.
Executive priority
Treat reachable installers on affected internet-facing systems as an immediate remediation priority. Upgrade promptly and restrict installer access now. For systems where the installer is unavailable, schedule an accelerated upgrade and verify that exposure has not been reintroduced.
Technical view
The installer writes user-supplied database configuration into a PHP configuration file. Its addcslashes() character list omits the backslash, allowing crafted values to escape the generated string and inject PHP code. The network-accessible attack requires no privileges or user interaction but depends on install/index.php being available.
Likely exposure
Exposure is highest for internet-accessible MyBB 1.8.13–1.8.39 deployments where the installer can still be reached. Systems already running 1.8.40 are fixed according to the supplied sources. Deployments without an available installer are less exposed to this specific attack path, although vulnerable installations should still be upgraded.
Exploitation context
The CVSS 3.1 score is 9.8 because exploitation is remotely reachable, low complexity, unauthenticated, and can compromise confidentiality, integrity, and availability. The supplied record does not identify active exploitation, and the CVE is not marked as included in KEV. Do not treat exploitation as confirmed.
Researcher notes
The vulnerable behavior was introduced in MyBB 1.8.13 and fixed in 1.8.40. The distinguishing defect is the missing backslash in the addcslashes() character list used for installer database values. Evidence supports code injection leading to RCE, but the supplied sources provide no confirmation of exploitation in the wild.
Mitigation direction
Upgrade affected MyBB installations to version 1.8.40 or later.
Immediately prevent network access to the installer until upgrading.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-94: Code execution behavior lookup
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
5Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: yesTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-94 · source CWE mapping
Improper Control of Generation of Code
Improper Control of Generation of Code represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.