一、 漏洞 CVE-2025-47916 基础信息
漏洞信息
                                        # N/A

## 漏洞概述
Invision Community 5.0.0至5.0.7版本中存在远程代码执行漏洞。通过精心构造的模板字符串,攻击者可以通过`themeeditor.php`页面执行任意PHP代码。

## 影响版本
- Invision Community 5.0.0至Invision Community 5.0.7

## 漏洞细节
漏洞位于`themeeditor`控制器(文件路径:`/applications/core/modules/front/system/themeeditor.php`)中的`customCss`方法。该方法可以被未认证用户调用,并将`content`参数的值传递给`Theme::makeProcessFunction()`方法,从而使其通过模板引擎进行解析。利用此机制,未认证攻击者可以通过提供精心构造的模板字符串注入并执行任意PHP代码。

## 影响
此漏洞允许攻击者在目标服务器上执行任意PHP代码,从而可能导致远程代码执行。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
N/A
来源:美国国家漏洞数据库 NVD
漏洞描述信息
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.
来源:美国国家漏洞数据库 NVD
CVSS信息
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Invision Community 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Invision Community是美国Invision公司的一个用于设计、开发移动应用UI的软件。 Invision Community 5.0.0至5.0.7之前版本存在安全漏洞,该漏洞源于模板字符串处理不当,可能导致远程代码执行。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-47916 的公开POC
# POC 描述 源链接 神龙链接
1 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 (/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, which is evaluated by the template engine. Accordingly, unauthenticated attackers can inject and execute arbitrary PHP code by providing crafted template strings. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-47916.yaml POC详情
三、漏洞 CVE-2025-47916 的情报信息