MyBB
MyBB: Installer database configuration RCE
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.8.40
Fixed in 1.8.40
Mitigation
Upgrade mybb to 1.8.40 or later.
References
- Vendor advisory github.com/mybb/mybb/security/advisories/GHSA-…
- Patch github.com/mybb/mybb/commit/0fe713e3b964bfc878…
- Release notes github.com/mybb/mybb/releases/tag/mybb_1840
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.