Skip to main content

PHP CVE-2025-47916

CRITICAL
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2025-05-16 cve@mitre.org
10.0
CVSS 3.1
Share

CVSS VectorNVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Generated
Mar 28, 2026 - 18:42 vuln.today
PoC Detected
Jun 20, 2025 - 17:42 vuln.today
Public exploit code
CVE Published
May 16, 2025 - 15:15 nvd
CRITICAL 10.0

DescriptionNVD

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.

AnalysisAI

Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template engine's themeeditor.php. By crafting template conditional strings using PHP's alternative function call syntax, attackers bypass security filters and execute arbitrary PHP code on the server.

Technical ContextAI

The customCss method in the themeeditor controller is accessible without authentication. It processes template conditional expressions that are designed to support limited logic. However, PHP's alternative function invocation syntax ("function_name"("argument")) bypasses the template engine's security checks, allowing arbitrary PHP function calls to be embedded in template code and executed server-side.

RemediationAI

Update to Invision Community 5.0.7 immediately. Review theme files for unauthorized modifications. Audit web server logs for POST requests to the themeeditor endpoint. Restrict access to admin-area URLs via IP allowlisting at the web server level.

Share

CVE-2025-47916 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy