This module exploits a design flaw in vBulletin's AJAX API handler and template rendering system, present in versions 5.0.0 through 6.0.3. The vulnerability allows unauthenticated attackers to invoke protected controller methods via the ajax/api/ad/replaceAdTemplate endpoint, due to improper use of PHP's Reflection API in combination with changes in PHP 8.1+. Specifically, it targets the vB_Api_Ad::replaceAdTemplate() method to inject a template containing a <vb:if> conditional that evaluates attacker-supplied PHP using the "system"($_POST[<param>]) construct. The malicious template is then executed via a second unauthenticated request to ajax/render/ad_<location>. Successful exploitation results in arbitrary command execution as the webserver user, without authentication. This module supports payloads for PHP, Linux, and Windows. Tested against vBulletin 5.1.0, 5.7.5, 6.0.1, and 6.0.3 running on PHP 8.1.
Exploit database
Vulnerability
CVE-2025-48827
Vulnerability details
- Score
- 10.0
- Severity
- critical
CVSS 3.1 · mitre
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HDescription
vBulletin 5.0.0 through 5.7.5 and 6.0.0 through 6.0.3 allows unauthenticated users to invoke protected API controllers' methods when running on PHP 8.1 or later, as demonstrated by the /api.php?method=protectedMethod pattern, as exploited in the wild in May 2025.
CVE ProgramExploit source choices
3 sourcesvBulletin replaceAdTemplate Remote Code Execution
2025-05-23vbulletin_replace_ad_template_rce.rb
0xgh057r3c0n/cve-2025-48827
Critical Unauthenticated API Access in vBulletin
2025-05-293 files · 10 stars
sh4den/cve-2025-48827
This repository contains a proof-of-concept exploit for CVE-2025-48827, a critical authentication bypass vulnerability affecting vBulletin 5.0.0–5.7.5 and 6.0.0–6.0.3 when running on PHP 8.1 or later. The vulnerability allows unauthenticated attackers to invoke protected API methods remotely.
2025-07-146 files · 1 stars