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.
History

Sat, 17 May 2025 05:45:00 +0000

Type Values Removed Values Added
References

Fri, 16 May 2025 17:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 16 May 2025 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1336
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}


Fri, 16 May 2025 15:00:00 +0000

Type Values Removed Values Added
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.
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2025-05-16T00:00:00.000Z

Updated: 2025-05-17T05:03:09.924Z

Reserved: 2025-05-14T00:00:00.000Z

Link: CVE-2025-47916

cve-icon Vulnrichment

Updated: 2025-05-17T05:03:09.924Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-05-16T15:15:48.357

Modified: 2025-05-19T13:35:50.497

Link: CVE-2025-47916

cve-icon Redhat

No data.