79% vs 51%: independent neobanks lag on app security. Read the report

Deep Dive

Deep Dive

vBulletin2Shell: vBulletin BBCode RCE (CVE-2026-137330)

vBulletin before 6.2.2/6.2.3/6.2.4 Patch Level 1 lets a guest run PHP code through a BBCode attachment object-injection flaw.

TL;DR

  • vBulletin2Shell lets an unauthenticated guest run PHP functions and operating-system commands on a self-hosted vBulletin forum. Researcher Duarte Santos published the analysis and a proof of concept on 2026-12-01.
  • Self-hosted vBulletin before 6.2.2 Patch Level 1, 6.2.3 Patch Level 1 and 6.2.4 Patch Level 1 is affected. vBulletin Cloud is patched by the vendor.
  • The CVE record carries CVSS v3.1 9.8 Critical and CVSS v4.0 9.3 Critical. No in-the-wild exploitation is reported, and the CVE is not in CISA KEV as of 2026-12-02.
  • Apply the patch for your 6.2.x branch or upgrade to 6.2.4 Patch Level 1. "How do I fix it?" has a WAF block for forums that cannot patch yet.

Am I affected?

All of these must hold:

  • The forum is self-hosted vBulletin, not vBulletin Cloud.
  • The version is before 6.2.2 Patch Level 1, or 6.2.3 before Patch Level 1, or 6.2.4 before Patch Level 1. Older branches, including 6.1.x and earlier, are also older than the first fixed patch level.
  • The /ajax/render/contententry_editor route is reachable by a guest. A reverse proxy or web application firewall that blocks the route removes the published path.
  • The forum has not applied the patch files for its branch.

The flaw is in the BBCode attachment settings path. A forum that disables attachments or the content entry editor may not expose the sink. The published proof of concept needs only a guest session and no account.

Branch Affected versions Fixed version
6.2.4 6.2.4 before Patch Level 1 6.2.4 Patch Level 1
6.2.3 6.2.3 before Patch Level 1 6.2.3 Patch Level 1
6.2.2 6.2.2 before Patch Level 1 6.2.2 Patch Level 1
6.2.1 and earlier every version before 6.2.2 Patch Level 1 upgrade to 6.2.4 Patch Level 1
vBulletin Cloud not affected vendor-managed

The CVE record names the three 6.2.x branches. The researcher says older versions must upgrade to 6.2.4 Patch Level 1, because the patch is published only for 6.2.2, 6.2.3 and 6.2.4.

Read the generator tag from the forum home page:

curl -s https://forum.example.com/ | grep -o '<meta name="generator" content="[^"]*"'

The tag shows the base version, not the patch level. A 6.2.4 tag does not prove that Patch Level 1 is applied. Confirm the patch level in the AdminCP or by checking that the files from members.vbulletin.com/patches.php were uploaded. The following GET records only an HTTP status; it does not prove that an unauthenticated POST can reach the vulnerable parser or that the patch is present. Confirm routing and WAF policy separately; do not send the exploit payload to a production forum:

curl -s -o /dev/null -w '%{http_code}\n' https://forum.example.com/ajax/render/contententry_editor

How do I fix it?

Apply the security patch for your branch, or upgrade to 6.2.4 Patch Level 1. The vendor patch note is on the vBulletin forum, and the files are on the members patch page.

  1. Read the generator tag and choose the patch for 6.2.2, 6.2.3 or 6.2.4.
  2. Download the patch archive from members.vbulletin.com/patches.php.
  3. Upload the patch files to the forum root, replacing the existing files.
  4. Confirm the patch level in the AdminCP.
  5. If the forum is on 6.2.1 or earlier, upgrade to 6.2.4 Patch Level 1 instead of applying a patch for a branch you do not run.
  6. Recheck the generator tag and the AdminCP after the upload.

vBulletin Cloud is patched automatically. Cloud admins do not need to apply the patch or change the WAF.

If you cannot patch yet, block the published path at the reverse proxy or web application firewall:

  1. Block POST requests to /ajax/render/contententry_editor.
  2. Block the routestring=ajax/render/contententry_editor parameter in the query string and in the request body, because vBulletin accepts the route through routestring.
  3. Keep the block until the patch is applied.

The WAF block covers the published route only. It does not remove the unserialize() sink, and another render route may reach the same BBCode parser. Treat it as a stopgap, not a fix.

What is the root cause?

vBulletin2Shell is a PHP object injection in the BBCode attachment settings. A guest-controlled settings value reaches unserialize() with no class restriction, and the Guzzle classes bundled with vBulletin turn the injected objects into command execution. The flaw lives in the contententry_editor render endpoint and in includes/vb5/template/bbcode.php.

The contententry_editor endpoint lets a guest render a template, and the POST fields become template variables. The template hands conversation[rawtext] and conversation[attachments] to bbcode::parseWysiwyg(). The text [ATTACH=CONFIG]n1[/ATTACH] makes the parser read the settings of a fake attachment with node id 1. The settings value then reaches unserialize() with no allowed_classes argument.

That missing argument is the root cause. PHP's unserialize() instantiates every class named in its input and runs the magic methods those classes define. vBulletin bundles Guzzle, and Guzzle's FileCookieJar, PumpStream and HandlerStack classes provide a destructor chain. The serialized value is an array of two objects. The first object, vB_Mail_Transport_PhpMailer_Smtp, makes vBulletin's autoloader load the Guzzle library. The second object, GuzzleHttp\Cookie\FileCookieJar, starts the chain.

The public proof of concept shows the structure. This excerpt is from the researcher's decoded settings value:

a:2:{i:0;O:32:"vB_Mail_Transport_PhpMailer_Smtp":0:{}
i:1;O:31:"GuzzleHttp\Cookie\FileCookieJar":4:{...}}

The HandlerStack inside that object carries a stack of three functions:

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";}

When PHP destroys the FileCookieJar, it calls PumpStream::__toString() and then HandlerStack::resolve(). resolve() passes the handler string "id" through the stack. The stack runs from last to first, so the server runs constant(base64_encode(shell_exec("id"))). The command runs, the output is base64-encoded, and the undefined constant error carries the output back in the JSON response.

How is it exploited?

The attack is one unauthenticated POST request. The researcher's proof of concept sends it as a guest and gets command output in the response.

  1. The guest sends a POST to /ajax/render/contententry_editor with editPost=1, conversation[rawtext]=[ATTACH=CONFIG]n1[/ATTACH], conversation[attachments][0][nodeid]=1 and the serialized chain in conversation[attachments][0][settings].
  2. The template calls bbcode::parseWysiwyg(), and the [ATTACH=CONFIG] tag reads the fake attachment settings.
  3. unserialize() builds the two objects. The first object loads the Guzzle classes, and the second object carries the gadget chain.
  4. The FileCookieJar destructor reaches HandlerStack::resolve() and runs shell_exec("id") as the web server user.
  5. The output is base64-encoded into an "Undefined constant" error, which the JSON response returns to the guest.

This is the request shape from the public proof of concept, with the serialized chain shortened:

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-urlencode 'conversation[attachments][0][settings]=<serialized chain>'

The full payload and the decoded response are on the vBulletin2Shell site. The researcher also published a step-by-step write-up.

How does the attack flow?

A guest POST reaches the content entry editor. The BBCode parser reads a fake attachment, unserialize() builds the Guzzle gadget, and the destructor runs a shell command as the web server user.

flowchart LR A["Guest POST to
/ajax/render/contententry_editor"] --> B["Template passes
attachment settings"] B --> C["bbcode::parseWysiwyg()
reads [ATTACH=CONFIG]"] C --> D["unserialize()
no allowed_classes"] D --> E["Guzzle gadget chain
FileCookieJar to HandlerStack"] E --> F["shell_exec()
as web server user"] F --> G["Output returned
in JSON error"]

What can an attacker do?

An unauthenticated attacker can run PHP functions and operating-system commands as the web server user. The researcher says the web server user can read the forum's config.php, and through it the database credentials, private messages, email addresses and password hashes.

The attacker can run any command the web server user can run, including reading and writing files that user can access. The database credentials also give access to the forum database.

The conditions are the ones in "Am I affected?": a self-hosted forum, an affected version, a reachable /ajax/render/contententry_editor route, and no patch or WAF block. The attacker needs no account, no session and no user interaction.

The same patch fixes two companion flaws. CVE-2026-137328 lets an unauthenticated guest read private messages through AJAX API paths that lack sentto checks, and the CVE record scores it CVSS v3.1 7.5 High.

CVE-2026-137329 lets an unauthenticated attacker poll sequential searchlogid values and read other users' cached searches, including matching private messages, and the CVE record scores it CVSS v3.1 6.5 Medium. The researcher reported four more issues that remain private until each is fixed.

No in-the-wild exploitation is reported. The public proof of concept is a working exploit, so a forum that exposes the route should be treated as remotely exploitable until it is patched.

Why does the fix work?

The vendor patch makes unserialize() refuse all objects, so the serialized settings value cannot instantiate the Guzzle classes and the destructor chain never runs. With allowed_classes set to false, PHP creates __PHP_Incomplete_Class objects instead of the named classes, and the magic methods that carry the chain are not available.

The patch is not public. vBulletin ships the fix as patch files for 6.2.2, 6.2.3 and 6.2.4, and the patch note and the researcher describe the change. This post cannot show a diff because the vendor source is closed. The researcher says the patch breaks the attack by making unserialize() refuse all objects.

The fix is complete for the patched branches if every copy of the vulnerable call is changed. The patch note covers 6.2.2, 6.2.3 and 6.2.4. Forums on 6.2.1 or earlier need the upgrade, because no patch is published for those branches.

How do I check if I was compromised?

No public indicators of compromise are published for vBulletin2Shell. The checks in this section look for the published request shape and for the error that carries command output.

First search access logs for POSTs to the content entry editor. Standard access logs do not include request bodies, so these commands identify route use, not the settings payload:

grep -Ei 'POST .*contententry_editor' /var/log/nginx/access.log
grep -Ei 'POST .*contententry_editor' /var/log/apache2/access.log

If an existing WAF or application trace captured the request body, inspect settings for URL-encoded serialized objects: %3A represents a colon, with O%3A or a%3A near the start of the value. Decode those captured values before reading them. Their absence from ordinary access logs does not rule out exploitation.

Search the PHP error log for the error that carries the command output:

grep -Ei 'Undefined constant' /var/log/php*.log

A hit is a lead, not proof. The route is also used by legitimate editors, and an attempt that failed may leave no trace. Check config.php, the forum file tree and the administrator accounts for unexpected changes, and rotate the database password if you find a successful request.

Timeline

  • 2026-11-13: Duarte Santos reports the flaw privately to vBulletin.
  • 2026-11-19: vBulletin releases the security patch.
  • 2026-11-24: Santos requests CVE IDs from VulnCheck.
  • 2026-11-26: CVE-2026-137330 is reserved.
  • 2026-12-01: The researcher publishes vBulletin2Shell.
  • 2026-12-02: The CVE record is published.

From private report to public disclosure in 18 days
Figure 1: vBulletin2Shell from the private report on 2026-11-13 to the CVE record on 2026-12-02. Source: Duarte Santos, vBulletin2Shell, and the CVE record, checked December 2, 2026

FAQ

Is vBulletin Cloud affected?

No. vBulletin patches Cloud automatically, so Cloud admins do not need to apply the patch or change the WAF. Self-hosted forums need the patch for their branch.

Does the attacker need an account?

No. The published proof of concept sends the request as a guest, and the endpoint is reachable without a session. The attacker needs network access to the forum and the affected route.

Is there a public exploit?

Yes. The researcher published a proof of concept and a full call-chain write-up on 2026-12-01. No in-the-wild exploitation is reported, and the CVE is not in CISA KEV as of 2026-12-02.

What if I cannot patch today?

Block POSTs to /ajax/render/contententry_editor and the routestring form of the route at the WAF. That blocks the published path, but it does not fix the unserialize() sink, so patch as soon as possible.

Does the generator tag show the patch level?

No. The tag shows the base version, so a 6.2.4 tag does not prove Patch Level 1. Confirm the patch level in the AdminCP or by checking that the patch files were uploaded.

Are older versions affected?

Yes. Every self-hosted version before 6.2.2 Patch Level 1 is in range. The vendor publishes patches only for 6.2.2, 6.2.3 and 6.2.4, so older branches must upgrade to 6.2.4 Patch Level 1.

References

  • vBulletin2Shell, Duarte Santos, 2026-12-01: https://vbulletin2shell.com (checked December 2, 2026)
  • "vBulletin2Shell" write-up, Duarte Santos: https://duartecsantos.github.io/posts/vbulletin2shell/ (checked December 2, 2026)
  • CVE-2026-137330 record: https://www.cve.org/CVERecord?id=CVE-2026-137330 (checked December 2, 2026)
  • CVE-2026-137328 record: https://www.cve.org/CVERecord?id=CVE-2026-137328 (checked December 2, 2026)
  • CVE-2026-137329 record: https://www.cve.org/CVERecord?id=CVE-2026-137329 (checked December 2, 2026)
  • vBulletin security patch note: 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 (checked December 2, 2026)
  • W3Techs vBulletin usage statistics, December 2026: https://w3techs.com/technologies/details/cm-vbulletin (checked December 2, 2026)
  • CISA Known Exploited Vulnerabilities catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog (checked December 2, 2026)

Free scan

Scan your own app for free

or book a demo

Keep reading

Related articles

Browse the blog