CVE-2025-47916
JSON

10.0critical

Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php.

Severity
10.0critical CVSS:3.1 by mitre
Exploit likelihood
84.4% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

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.

Affected

Product or packageVersionsReported by
invisioncommunity Invision Power Boardfrom 5.0.0 before 5.0.7CVE List
invisioncommunity invisioncommunityfrom 5.0.0 before 5.0.7NVD

All scores

mitre10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-1336

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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 (es)

Invision Community 5.0.0 anterior a 5.0.7 permite la ejecución remota de código mediante cadenas de plantillas manipuladas en themeeditor.php. El problema reside en el controlador themeeditor (archivo: /applications/core/modules/front/system/themeeditor.php), donde usuarios no autenticados pueden invocar un método protegido llamado customCss. Este método pasa el valor del parámetro content al método Theme::makeProcessFunction(); por lo tanto, lo evalúa el motor de plantillas. Por lo tanto, atacantes no autenticados pueden aprovechar esto para inyectar y ejecutar código PHP arbitrario mediante cadenas de plantillas manipuladas.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-47916 changed 2025-05-17CVE Terms of Use
NVDCVE-2025-47916 changed 2026-06-17Public domain