December 3, 2026
vBulletin2Shell | PHP object injection
vBulletin2Shell: Unauthenticated RCE in vBulletin via PHP Object Injection (CVE-2026โ137330)

By azr
7 min read
vBulletin2Shell: Unauthenticated RCE in vBulletin via PHP Object Injection (CVE-2026โ137330)
A single POST request made by an anonymous user is sufficient to execute commands, and the result is returned within an error in JSON format.
vBulletin2Shell is a critical vulnerability affecting self-hosted vBulletin installations. The issue allows an attacker to execute commands remotely without requiring authentication or administrative access.
Exploitation occurs via a specially crafted POST request sent to the content editor endpoint. When processing the request, vBulletin deserializes a malicious object hidden within the BBCode attachment configuration. The chain of objects eventually reaches shell_exec(), enabling command execution on the server. The result is then returned within an error JSON response, encoded in Base64.
- CVE: CVE-2026โ137330
- CWE: CWE-502 (Deserialization of Untrusted Data)
- CVSS 3.1: 9.8 โ
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 4.0: 9.3 โ
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
What is vBulletin?
vBulletin is a proprietary software package for Internet forums, sold by MH Sub I, LLC, which operates under the trade name vBulletin (formerly Jelsoft Enterprises and vBulletin Solutions). It is written in PHP and uses a MariaDB or MySQL database server.
Why is an old technology still used?
The main reason is the high cost and technical complexity of migrating large, legacy databases to modern platforms, in addition to the fact that they serve specific niches well โ niches that prefer the traditional forum format.
Where is it still used?
Even though it is old, it is still used in many places โ specifically within long-established niche communities and on large web portals.
What is vBulletin2Shell?
vBulletin2Shell is the name given by researcher Duarte Santos to CVE-2026โ137330, an unauthenticated remote code execution vulnerability in vBulletin. It is not a memory corruption bug or a misconfiguration. It is a PHP object injection flaw in the code that processes BBCode attachment settings. VulnCheck, the CNA, published the CVE record on December 2, 2026.
What is PHP object injection?
PHP object injection happens when an application passes attacker-controlled data to unserialize() without restricting which classes can be instantiated. PHP can rebuild objects from a serialized string. If those objects define magic methods such as __destruct(), __toString(), or __wakeup(), an attacker can chain existing classes into a gadget chain. The attacker does not upload code; they reuse code the application already has.
How the vulnerability works:
- The entry point is
POST /ajax/render/contententry_editor, the route that renders the content editor. It accepts requests from guests. - The request sets
conversation[rawtext]to[ATTACH=CONFIG]n1[/ATTACH]. The BBCode parser looks up attachmentn1. - The matching attachment settings come from
conversation[attachments][0][settings]. That value is attacker-controlled. bbcode::parseWysiwyg()inincludes/vb5/template/bbcode.phpcallsunserialize()on the settings value. It does not passallowed_classes, so any class available to the application can be instantiated.- The serialized object uses Guzzle classes bundled with vBulletin. When the object is destroyed, the chain reaches
shell_exec(). The output is base64-encoded and passed toconstant(), which throws an error containing the encoded output. - A simplified request looks like this:
POST /ajax/render/contententry_editor HTTP/1.1 Host: forum.example.com X-Requested-With: XMLHttpRequest Content-Type: application/x-www-form-urlencoded
editPost=1 &conversation[rawtext]=[ATTACH=CONFIG]n1[/ATTACH] &conversation[attachments][0][nodeid]=1 &conversation[attachments][0][settings]=
The brackets and the payload must be URL-encoded on the wire; they are shown raw here for readability.
The [ATTACH=CONFIG] tag is only the trigger. The serialized object lives in the settings value. That is the detail that makes the vulnerability easy to miss: the tag looks harmless, and the dangerous data is in a nested field.
The gadget chain
A gadget chain is an exploitation technique that combines existing classes and methods already present in the application or its dependencies. The attacker does not introduce new code; they abuse legitimate functionality. Here, the chain uses classes that ship with vBulletin's Guzzle dependency:
FileCookieJar::__destruct()
-> PumpStream::__toString()
-> HandlerStack::resolve()
-> shell_exec($command)
-> base64_encode($output)
-> constant($encoded_output)FileCookieJar::__destruct()
-> PumpStream::__toString()
-> HandlerStack::resolve()
-> shell_exec($command)
-> base64_encode($output)
-> constant($encoded_output)What each piece does:
FileCookieJar::__destruct()is the entry point. When the object is destroyed, PHP calls the destructor, and the chain starts.PumpStream::__toString()converts the object to a string and invokes the callable stored in it.HandlerStack::resolve()resolves the handler and calls the configured function.shell_exec()runs the command as the web server user.base64_encode()encodes the output so it can travel safely through the error message.constant()receives the encoded output as a constant name and throwsUndefined constant "<base64>".
FileCookieJar and HandlerStack come from Guzzle; PumpStream comes from guzzlehttp/psr7. vBulletin bundles both, so the classes are already loaded. That is what makes the chain work without uploading anything.
Why the output comes back in an error
constant() expects the name of a defined constant. When it receives the base64 string, PHP throws an error like this:
{
"errors": [
["unexpected_error", "Undefined constant \"dWlkPTMzKHd3dy1kYXRhKSBnaWQ9...\""]
]
}{
"errors": [
["unexpected_error", "Undefined constant \"dWlkPTMzKHd3dy1kYXRhKSBnaWQ9...\""]
]
}vBulletin catches the exception and returns the message in the JSON response. Decode the base64 and you have the command output.
This is an in-band leak: no outbound connection from the target is needed for command execution. That is why the exploit works even when the server cannot reach the attacker.
Commands are sent base64-encoded (echo <base64> | base64 -d | sh) to avoid whitespace and quoting problems in the serialized string. A space inside the serialized value changes its length and can break unserialize() on targets that normalize POST data. exec 2>&1 merges stderr into stdout so errors come back too.
Affected versions and fix
- vBulletin before 6.2.2 โ fixed in 6.2.2 Patch Level 1
- vBulletin 6.2.3 before PL1 โ fixed in 6.2.3 Patch Level 1
- vBulletin 6.2.4 before PL1 โ fixed in 6.2.4 Patch Level 1
- vBulletin 5.x and older โ upgrade to 6.2.4 Patch Level 1
vBulletin Cloud is patched automatically. Self-hosted instances need action.
The patch makes unserialize() refuse objects, so the gadget chain cannot be instantiated. The vendor did not offer an official workaround. The researcher suggested a temporary WAF rule, but it has not been independently tested and may break legitimate editor features. Patching is the real fix.
regarding the vBulletin vulnerability:
1-initial vector: When rendering a post, the file includes/vb5/template/bbcode.php processes attachment settings submitted via the [ATTACH=CONFIG] tag.
2-validation failure: Validation failure. The data in this tag is passed directly to PHP's native unserialize() function, with no restrictions on which classes can be instantiated.
3 โ Gadget Chain:
An unauthenticated attacker sends a POST request containing a maliciously crafted serialized PHP object. The attack leverages legitimate classes from the Guzzle HTTP library, bundled with vBulletin, to chain internal method calls (FileCookieJar โ PumpStream โ HandlerStack), eventually reaching the shell_exec function.
3.1 โ What is a Gadget Chain?
A Gadget Chain is an exploitation technique that combines existing classes and methods within an application or its dependencies to trigger unintended behavior.
Rather than introducing entirely new code, an attacker abuses legitimate functionalities already available in the environment. In PHP Object Injection scenarios, these chains can be triggered during object deserialization, potentially resulting in arbitrary code execution.
4-data return: The command is executed with the privileges of the web server user, and the result is returned, Base64-encoded, within an error message in the JSON response.
Explotation:
PoC: https://github.com/zepilintraleet/CVE-2026-137330/
reverse shell:
Type "Y" and proceed.
After that, if the system is vulnerable, you should receive a shell.
interactive shell:
By using the " โ shell" flag, you can obtain an interactive shell. (limited compared to a reverse shell)
Flags (less important):
"-list" : reads a list of targets.
" โ chek" passive scan, no exploitation.
" โ proxy" receives proxies.
" โ timeout" Timeout for each request, in seconds, default: 15.
" โ threads" Number of parallel workers.
" โ verify" Validates TLS certificates. Disabled by default.
" โ command" executes one command at a time.
" โ help" shows the help menu.
Detection and mitigation
- Watch for POST requests to
/ajax/render/contententry_editorthat contain[ATTACH=CONFIG]. - Look for serialized data in
conversation[attachments][0][settings]. - Search for
GuzzleHttp,FileCookieJar,PumpStream, andHandlerStackin request bodies. - Alert on JSON errors containing
Undefined constant "followed by a long base64 string. - Block the route at the WAF as a temporary measure, but test it first: the same route is used by the legitimate editor. Also consider the
routestring=ajax/render/contententry_editorvariant, because vBulletin accepts the route as a parameter.
Timeline:
November 13, 2026 โ privately reported by Duarte Santos November 19, 2026 โ vendor releases 6.2.2 PL1, 6.2.3 PL1, and 6.2.4 PL1 November 26, 2026 โ CVE-2026โ137330 reserved December 1, 2026 โ public disclosure and PoC December 2, 2026 โ CVE record and NVD entry published December 3, 2026 โ no confirmed mass exploitation; not in CISA KEV
According to The Hacker News, the vendor's November 19 notice framed the release around search and private-messaging fixes and did not mention code execution. That may explain why the RCE stayed under the radar until the public write-up.
The same patch fixed two more bugs
CVE-2026โ137328: unauthenticated guests could read private messages through AJAX API paths that lacked sentto checks. CVSS 4.0: 8.7. CVE-2026โ137329: an insecure direct object reference in vB_Search_Core::getCache() allowed reading other users' cached searches. CVSS 4.0: 7.1.
Neither depends on the RCE, and no one has shown the three used together.
Lessons
unserialize() on user-controlled data is still a dangerous sink. allowed_classes should be restrictive by default; the patch works because it refuses objects. Third-party libraries are part of the attack surface. Guzzle was not the bug, but it provided the gadget chain. Detailed error messages can leak data. Here, the command output came back inside an error. Self-hosted software depends on the administrator applying patches. The vendor can ship a fix, but it cannot install it for you.
References:
- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-137330
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-137330
- VulnCheck advisory: https://www.vulncheck.com/advisories/vbulletin-before-6.2.2-patch-level-1-6.2.3-patch-level-1-and-6.2.4-patch-level-1-unauthenticated-rce-via-php-object-injection-vbulletin2shell
- Vendor patch notice: https://forum.vbulletin.com/forum/vbulletin-announcements/vbulletin-announcements_aa/4513670-security-patch-released-for-self-hosted-vbulletin-6-2-4-6-2-3-and-6-2-2
- Duarte Santos, "vBulletin2Shell": https://duartecsantos.github.io/posts/vbulletin2shell/
- vBulletin2Shell demo: https://vbulletin2shell.com
- The Hacker News: https://thehackernews.com/2026/12/critical-vbulletin-flaw-gets-public.html
- watchTowr FAQ: https://watchtowr.com/intelligence/vbulletin2shell-vbulletin-cve-2026-137330-faq
- CUHK ITSC advisory: https://www.itsc.cuhk.edu.hk/all-it/information-security/information-security-alerts/vbulletin-unauthenticated-remote-code-execution-vulnerability-vbulletin2shell-cve-2026-137330/
- CWE-502: https://cwe.mitre.org/data/definitions/502.html
- OWASP PHP Object Injection: https://owasp.org/www-community/vulnerabilities/PHP_Object_Injection
- PortSwigger, insecure deserialization: https://portswigger.net/web-security/deserialization
- PHP
unserialize: https://www.php.net/manual/en/function.unserialize.php - PHP magic methods: https://www.php.net/manual/en/language.oop5.magic.php
- PHP
constant: https://www.php.net/manual/en/function.constant.php - PHP
shell_exec: https://www.php.net/manual/en/function.shell-exec.php - Guzzle docs: https://docs.guzzlephp.org/en/stable/
FileCookieJar: https://github.com/guzzle/guzzle/blob/master/src/Cookie/FileCookieJar.phpPumpStream: https://github.com/guzzle/psr7/blob/master/src/PumpStream.phpHandlerStack: https://github.com/guzzle/guzzle/blob/master/src/HandlerStack.php- CVE-2026โ137328: https://www.cve.org/CVERecord?id=CVE-2026-137328
- CVE-2026โ137329: https://www.cve.org/CVERecord?id=CVE-2026-137329
- CISA KEV: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- vBulletin about: https://www.vbulletin.com/en/about-us