The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-24734

CVE-2022-24734: MyBB Forum Software RCE Vulnerability

CVE-2022-24734 is a remote code execution vulnerability in MyBB forum software affecting the Admin CP Settings module. Attackers with admin access can execute arbitrary PHP code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 11, 2026

CVE-2022-24734 Overview

CVE-2022-24734 is a Remote Code Execution (RCE) vulnerability affecting MyBB, a free and open source forum software. The vulnerability exists in the Admin Control Panel's Settings management module, which fails to properly validate setting types on insertion and update operations. This flaw allows authenticated administrators with the "Can manage settings?" permission to inject and execute arbitrary PHP code through the settings interface.

Critical Impact

Authenticated administrators can leverage insufficient input validation in the Settings module to inject PHP code that executes when visiting Change Settings pages, leading to complete server compromise.

Affected Products

  • MyBB versions prior to 1.8.30
  • MyBB installations with Admin CP enabled
  • Systems where administrators have "Can manage settings?" permissions

Discovery Timeline

  • 2022-03-09 - CVE-2022-24734 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-24734

Vulnerability Analysis

The vulnerability stems from improper input validation in MyBB's Admin Control Panel Settings management module. MyBB's Settings module allows administrators to add, edit, and delete non-default settings, storing setting data in an options code string ($options_code) within the mybb_settings.optionscode database column. This column identifies the setting type and its options, separated by a newline character (\n).

Since MyBB version 1.2.0, support for the php setting type was introduced, where the remaining portion of the options code is interpreted and executed as PHP code on Change Settings pages. This feature was originally reserved for plugins and internal use but lacked sufficient validation to prevent abuse.

The vulnerable code attempts to filter out php type settings but does so inadequately by only checking if the first three characters match "php" (case-insensitive) after removing newline characters. An attacker could bypass this check using various techniques, enabling the injection of arbitrary PHP code.

Root Cause

The root cause is classified as CWE-94 (Improper Control of Generation of Code / Code Injection). The Settings management module in admin/modules/config/settings.php fails to properly validate the type input parameter. The original validation only stripped newline characters and performed a simple prefix check against "php", which could be circumvented through character encoding or other bypass techniques.

Attack Vector

The attack requires network access with authenticated administrator privileges having the "Can manage settings?" permission. Once authenticated, an attacker can:

  1. Navigate to the Admin CP Settings management interface
  2. Create or modify a setting with a malicious type value that bypasses the inadequate filter
  3. Inject PHP code into the optionscode field
  4. Trigger code execution when visiting the Change Settings page

The following patch demonstrates how MyBB addressed the vulnerability:

php
 		}
 
 		// do some type filtering
-		$mybb->input['type'] = str_replace("\n", "", $mybb->input['type']);
-		if(strtolower(substr($mybb->input['type'], 0, 3)) == "php")
+		$mybb->input['type'] = $mybb->get_input('type');
+		if(!ctype_alnum($mybb->input['type']) || strtolower($mybb->input['type']) == "php")
 		{
 			$mybb->input['type'] = "";
 		}

Source: GitHub MyBB Commit

The fix implements stricter validation by requiring the type to be alphanumeric only (ctype_alnum) and explicitly blocking the "php" type through an exact case-insensitive match.

Detection Methods for CVE-2022-24734

Indicators of Compromise

  • Unusual entries in the mybb_settings database table with optionscode values containing PHP code
  • New or modified settings created by administrator accounts with suspicious timing
  • Unexpected PHP execution or web shells appearing on the server
  • Anomalous Admin CP access patterns, particularly to the Settings management module

Detection Strategies

  • Monitor Admin CP access logs for unusual activity in the Settings management module (/admin/index.php?module=config-settings)
  • Implement database auditing to detect modifications to the mybb_settings table
  • Review Admin CP audit logs for setting creation or modification events
  • Deploy web application firewalls (WAF) with rules to detect PHP code in form submissions to Admin CP endpoints

Monitoring Recommendations

  • Enable detailed logging for all Admin CP activities
  • Configure alerts for new setting creation or modification events
  • Monitor for unauthorized administrator account creation or privilege changes
  • Implement file integrity monitoring on MyBB installation directories

How to Mitigate CVE-2022-24734

Immediate Actions Required

  • Upgrade to MyBB version 1.8.30 or later immediately
  • Review existing administrator accounts and remove unnecessary "Can manage settings?" permissions
  • Audit the mybb_settings database table for any suspicious entries containing PHP code
  • Review Admin CP access logs for signs of exploitation

Patch Information

MyBB has released version 1.8.30 which resolves this vulnerability. The patch implements proper input validation by requiring setting types to contain only alphanumeric characters and explicitly blocking the php type. The security fix is documented in the GitHub Security Advisory GHSA-876v and the MyBB Version 1.8.30 Release Notes. Additional technical details are available in the Zero Day Initiative Advisory ZDI-22-503.

Workarounds

  • There are no known workarounds for this vulnerability according to the official advisory
  • Restrict Admin CP access to trusted IP addresses only as a defense-in-depth measure
  • Remove "Can manage settings?" permission from all non-essential administrator accounts
  • Consider temporarily disabling Admin CP access until the patch can be applied
bash
# Configuration example - Restrict Admin CP access by IP in .htaccess
<Files "admin">
    Order Deny,Allow
    Deny from all
    Allow from 192.168.1.0/24
    Allow from 10.0.0.0/8
</Files>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMybb

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability82.41%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • Packet Storm RCE Exploit

  • Packet Storm RCE for Admin Control
  • Vendor Resources
  • GitHub MyBB Commit

  • GitHub Security Advisory GHSA-876v

  • MyBB Version Announcement 1.8.30

  • Zero Day Initiative Advisory ZDI-22-503
  • Related CVEs
  • CVE-2018-25309: MyBB Recent Threads XSS Vulnerability

  • CVE-2025-23749: MyBB Last Topics CSRF Vulnerability

  • CVE-2018-25247: MyBB Like Plugin XSS Vulnerability

  • CVE-2018-25249: MyBB My Arcade Plugin XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English