CVE-2025-47916 Details
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.
A remote code execution vulnerability exists in Invision Community versions 5.0.0 prior to 5.0.7. The issue is located in the theme editor controller, specifically within the customCss method of themeeditor.php. This protected method can be accessed by unauthenticated users, allowing them to inject and execute arbitrary PHP code by sending crafted template strings. The vulnerability arises because the method processes the 'content' parameter with the template engine, enabling code execution.
Users are advised to upgrade to Invision Community version 5.0.7 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 16, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://karmainsecurity.com/KIS-2025-02 | CISA-ADP | ExploitThird Party Advisory |
| http://seclists.org/fulldisclosure/2025/May/4 | CVE | Mailing ListThird Party Advisory |
| https://invisioncommunity.com/release-notes-v5/507-r41/ | [email protected] | Release Notes |
| https://karmainsecurity.com/KIS-2025-02 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| invisioncommunity invisioncommunity | >= 5.0.0, < 5.0.7 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 20, 2025 | Initial Analysis | [email protected] |
| May 17, 2025 | CVE Modified | CVE |
| May 16, 2025 | CVE Modified | CISA-ADP |
| May 16, 2025 | New CVE Received | [email protected] |