Invisioncommunity Invision Power Board
Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.0.0, < 5.0.7
Fixed in 5.0.7
Mitigation
Upgrade Invision Power Board to 5.0.7 or later.
Timeline
Days relative to CVE publicationFirst public PoC 2 days after publication; not in CISA KEV. First PoC: Invision Community 5.0.6 - Remote Code Execution (RCE) (Exploit-DB, 18 May 2025).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Web3-Serializer/CVE-2025-47916 | 21 Nov 2025 +190 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Invision Community 5.0.6 - Remote Code Execution (RCE) | 18 May 2025 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Invision Community 5.0.6 customCss RCE (exploit/multi/http/invision_customcss_rce) | 20 May 2025 | 14 Nov 2026 |
| nuclei template | nuclei template: Invision Community <=5.0.6 Unauthenticated RCE via Template Injection | 26 May 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /
- Body markers
app=coremodule=systemcontroller=themeeditordo=customCsscontent={expression="die(...system(base64_decode(...)))"}________inapplication/x-www-form-urlencoded- Ports
- 80, 443
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36- Seen in
- 1 repo: Web3-Serializer/CVE-2025-47916
- Evidence
- Web3-Serializer/CVE-2025-47916/main.py:34-51
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [80,443] (msg:"GG PoC-Monitor CVE-2025-47916 invisioncommunity Invision Power Board exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:"app=core"; http.request_body; content:"module=system"; http.request_body; content:"controller=themeeditor"; http.request_body; content:"do=customCss"; http.request_body; content:"content={expression=|22|die(...system(base64_decode(...)))|22|}"; http.request_body; content:"________"; reference:url,poc.griffinguard.io/cve/CVE-2025-47916; classtype:web-application-attack; sid:9553306; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: invisioncommunity Invision Power Board exploit attempt (CVE-2025-47916)
id: gg-pocmon-cve-2025-47916-9553306
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-47916. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-47916
logsource:
category: webserver
detection:
selection:
cs-method: POST
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.47916