CVE-2022-24734
Remote code execution in mybb
Check your servers for CVE-2022-24734
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-24734 affects mybb, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 71.0%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.5% of all scored CVEs. Scores of 29 Nov 2026.
The assessment of CISA (SSVC, 22 Apr 2025):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-94 Improper Control of Generation of Code
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of mybb and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i mybb
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-24734 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-24734RHEL, Rocky, Alma, Fedora
rpm -q mybb
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-24734Alpine
apk list --installed | grep -i mybbWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-24734
trivy image --scanners vuln IMAGE | grep CVE-2022-24734
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/mybb/mybb/commit/92012b9831b330714b9f9b4646a98784113489c1 github.com
- https://mybb.com/versions/1.8.30/ mybb.com
- https://www.zerodayinitiative.com/advisories/ZDI-22-503/ zerodayinitiative.com
- http://packetstormsecurity.com/files/167082/MyBB-1.8.29-Remote-Code-Execution.html packetstormsecurity.com
- http://packetstormsecurity.com/files/167333/MyBB-Admin-Control-Remote-Code-Execution.html packetstormsecurity.com
Source: the record CVE-2022-24734 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse