CVE-2022-24734

Public Exploit
Remote code execution in mybb

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.

Category

7.2
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 85.88% Top 5%
Vendor Advisory mybb.com Vendor Advisory zerodayinitiative.com
Affected: mybb mybb
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-24734?
CVE-2022-24734 has been scored as a high severity vulnerability.
How to fix CVE-2022-24734?
To fix CVE-2022-24734, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-24734 being actively exploited in the wild?
It is possible that CVE-2022-24734 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~86% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-24734?
CVE-2022-24734 affects mybb mybb.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.