CVE-2025-47916 Code injection in Invision Power Board
Unauthenticated attackers can execute arbitrary PHP code by injecting crafted template strings into the theme editor.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-47916?
CVE-2025-47916 is a critical code injection vulnerability in invisioncommunity Invision Power Board, published on 16 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2025-47916?
It affects 1 product.
Products include Invisioncommunity Invisioncommunity.
How do I fix CVE-2025-47916?
No fix has been published for CVE-2025-47916 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-47916 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-47916 exists.
Public exploit code: 1 Metasploit module, 1 Exploit-DB entry, 1 Nuclei template and 1 proofs of concept on GitHub.
Other vulnerabilities in invisioncommunity Invision Power Board
Sources
Also known as GHSA-96q3-fjrx-h9hh.