{"id":"CVE-2022-24734","published":"2022-03-09T21:25:08Z","modified":"2025-04-22T18:19:20Z","title":"Remote code execution in mybb","vendor":"mybb","product":"mybb","tier":"core","eol":null,"affectedVersions":[{"vendor":"mybb","product":"mybb","versions":[">= 1.2.0, < 1.8.30"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:44:10.816237Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"MyBB's Admin CP Settings management module fails to validate setting types when settings are inserted or updated, so settings of the php type can be added with arbitrary PHP code stored in the options code field, which is then executed on Change Settings pages. An attacker needs Admin CP access with the \"Can manage settings?\" permission (high privileges, with no user interaction required) to trigger remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T03:45:09Z"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.77827,"percentile":0.99579,"date":"2026-11-23","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":1,"pulses":[{"name":"Vulnerability in MyBB","url":"https://otx.alienvault.com/pulse/623824e4bb9affd1ba2d9df1","created":"2022-03-21"}],"provenance":"machine"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/mybb/mybb/security/advisories/GHSA-876v-gwgh-w57f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mybb/mybb/commit/92012b9831b330714b9f9b4646a98784113489c1","tags":["x_refsource_MISC"]},{"url":"https://mybb.com/versions/1.8.30/","tags":["x_refsource_MISC"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-22-503/","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/167082/MyBB-1.8.29-Remote-Code-Execution.html","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/167333/MyBB-Admin-Control-Remote-Code-Execution.html","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2022-29581","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-29581","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":50924,"url":"https://www.exploit-db.com/exploits/50924","title":"MyBB 1.8.29 - Authenticated MyBB 1.8.29 - Remote Code Execution (RCE)","type":"webapps","platform":"php","date":"2022-05-11","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2022-05-11"},"pocGithub":{"count":2,"skipped":0,"earliest":"2022-05-08","earliestUrl":"https://github.com/Altelus1/CVE-2022-24734","repos":[{"name":"Altelus1/CVE-2022-24734","url":"https://github.com/Altelus1/CVE-2022-24734","stars":48,"created":"2022-05-08"},{"name":"lavclash75/mybb-CVE-2022-24734","url":"https://github.com/lavclash75/mybb-CVE-2022-24734","stars":1,"created":"2022-05-15"}]},"metasploit":[{"name":"MyBB Admin Control Code Injection RCE","module":"exploit/multi/http/mybb_rce_cve_2022_24734","type":"exploit","disclosureDate":"2022-03-09","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/mybb_rce_cve_2022_24734.rb"}],"first":{"date":"2022-03-09","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/mybb_rce_cve_2022_24734.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/167082/MyBB-1.8.29-Remote-Code-Execution.html","http://packetstormsecurity.com/files/167333/MyBB-Admin-Control-Remote-Code-Execution.html"],"flow":[],"timeline":[{"date":"2022-03-09","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-24734","provenance":"source"},{"date":"2022-03-09","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2022-05-08, Exploit-DB 2022-05-11","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/mybb_rce_cve_2022_24734.rb","provenance":"source"}],"speed":{"daysToPublicExploit":0,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":30.6,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.92,"detail":"percentile 0.9958"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 2 NVD exploit links; 2 PoC-in-GitHub repos; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.68,"detail":"1 pulse"},{"name":"CVSS severity","points":5.04,"detail":"base score 7.2"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}