CVE-2022-24734Mybb Code Injection
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.
Published Mar 9, 2022 · Updated Oct 28, 2026 · Also known as BIT-mybb-2022-24734, GHSA-876v-gwgh-w57f
Key Facts
Patch immediately- CVE-2022-24734 is a high-severity vulnerability (CVSS 7.2 v3.1) affecting Mybb.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 78% probability of exploitation in the next 30 days.
- Fixed versions are available, including Mybb 1.8.30.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
7.2
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
78%
Higher than 99.5% of all scored CVEs
Exploit maturity
Weaponized
ATLAS score
69/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Weaponized
Public exploit code
4
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2022-24734
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-24734
- advisoryhttps://mybb.com/versions/1.8.30/
- advisoryhttps://www.zerodayinitiative.com/advisories/ZDI-22-503/
- patchhttps://github.com/mybb/mybb/commit/92012b9831b330714b9f9b4646a98784113489c1
- patchhttps://github.com/mybb/mybb/security/advisories/GHSA-876v-gwgh-w57f
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.
Affected Products
3 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| MybbMybb | >= 1.2.0, >= 1.2.0, < 1.8.30 | 1.8.30 |
Patched Releases
Mybb
1.8.30
Timeline
Publicly disclosed
Mar 9, 2022
Last updated
Oct 28, 2026
Weakness Type
- CWE-94 Improper Control of Generation of Code
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2022-24734
- advisorymybb.com · 1.8.30
- advisoryzerodayinitiative.com · ZDI-22-503
- patchgithub.com · 92012b9
FAQ
Common Questions.
MyBB is a free and open source forum software.
Affected: Mybb versions >= 1.2.0, >= 1.2.0, < 1.8.30. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Mybb 1.8.30.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-24734 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo