RULE(RULE ID:338976)

Rule General Information
Release Date: 2025-05-28
Rule Name: Invision Community Template Injection Vulnerability (CVE-2025-47916)
Severity:
CVE ID:
Rule Protection 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.
Impact: An attacker could exploit this vulnerability to have unspecified effect.
Affected OS: Windows, Linux, Others
Reference: https://invisioncommunity.com/release-notes-v5/507-r41/
https://karmainsecurity.com/KIS-2025-02
http://seclists.org/fulldisclosure/2025/May/4
https://karmainsecurity.com/KIS-2025-02
Solutions
Please refer to announcements or patches release by the vendor: https://invisioncommunity.com/