Skip to content
Emerging threatsHigh

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

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
ProductAffected versionsFixed in
MybbMybb>= 1.2.0, >= 1.2.0, < 1.8.301.8.30

Patched Releases

Mybb

1.8.30

Timeline

  1. Publicly disclosed

    Mar 9, 2022

  2. Last updated

    Oct 28, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code

References

5 more references in the full CVE brief

FAQ

Common Questions.

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

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.