CVE-2022-24734 in Mybb
MyBB is a free and open source forum software. In affected versions the Admin CP's Settings management module does not validate setting types correctly on insertion and update, making it possible to add settings of supported type `php` with PHP code, executed on on _Change Settings_ pages. This results in a Remote C...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Mybb | Mybb | ≥ 1.2.0, < 1.8.30 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
MyBB is a free and open source forum software. In affected versions the Admin CP's Settings management module does not validate setting types correctly on insertion and update, making it possible to add settings of supported type `php` with PHP code, executed on on _Change Settings_ pages. This results in a Remote Code Execution (RCE) vulnerability. The vulnerable module requires Admin CP access with the `Can manage settings?` permission. MyBB's Settings module, which allows administrators to add, edit, and delete non-default settings, stores setting data in an options code string ($options_code; mybb_settings.optionscode database column) that identifies the setting type and its options, separated by a new line character (\n). In MyBB 1.2.0, support for setting type php was added, for which the remaining part of the options code is PHP code executed on Change Settings pages (reserved for plugins and internal use). MyBB 1.8.30 resolves this issue. There are no known workarounds.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-24734 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-250819-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| Published | 2022-03-09 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-242 Code Injection via CWE-94
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2022-24734 is a Remote Code Execution (RCE) vulnerability in MyBB, a free and open source forum software. The vulnerability arises from the Admin CP's Settings management module, which does not validate setting types correctly, allowing an attacker with administrative privileges to insert PHP code that is executed on the _Change Settings_ pages. This can lead to full control of the affected system. The vulnerability is resolved in MyBB 1.8.30, and there are no known workarounds. The CVSS score is 7.2, indicating a high severity level, and the EPSS score of 0.82413 places it in the 1.0 percentile for exploitation likelihood.
The vulnerability can be exploited by an attacker with administrative access to the MyBB Admin CP. The attacker can manipulate the settings management module to insert PHP code, which is then executed when the _Change Settings_ page is accessed. This results in Remote Code Execution, allowing the attacker to perform arbitrary actions on the affected system.
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for all settings management inputs in the MyBB Admin CP. Restrict administrative access to the minimum necessary personnel and monitor for suspicious activity. Consider using a Web Application Firewall (WAF) to detect and block malicious requests.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2022-24734?
CVE-2022-24734 is a Remote Code Execution (RCE) vulnerability in MyBB, a free and open source forum software. The vulnerability arises from the Admin CP's Settings management module, which does not validate setting types correctly, allowing an attacker with administrative privileges to insert PHP code that is executed on the _Change Settings_ pages. This can lead to full control of the affected system. The vulnerability is resolved in MyBB 1.8.30, and there are no known workarounds. The CVSS sco
What is the CVSS score for CVE-2022-24734?
CVE-2022-24734 has CVSS 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. EPSS: 71.1%.
Is CVE-2022-24734 actively exploited?
Public exploit available for CVE-2022-24734. Exploitation risk elevated.
How do I remediate CVE-2022-24734?
Priority: IMMEDIATE. Advisory: https://mybb.com/versions/1.8.30/ PSIRT: [email protected]
What systems are affected by CVE-2022-24734?
CVE-2022-24734 affects Mybb Mybb.
What NERC-CIP standard applies to CVE-2022-24734?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to and control of the system, which can compromise the security and reliability of the control system.
What IEC 62443 requirement maps to CVE-2022-24734?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability that can be exploited to execute arbitrary code, which can compromise the security of the system and lead to unauthorized control.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Mybb","product":"Mybb","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.