Security Resilience

CVE-2025-47916

RCE in Invisioncommunity 5.0.0 – 5.0.7

Public PoCHigh EPSSRCE
Published
16 May 2025
Modified
17 June 2026
CVSS Score v3.1 10.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS Score 0.84 99.7th percentile
Risk Priority 100 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-47916 is a critical-severity Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336) vulnerability in Invisioncommunity. Its CVSS base score is 10.0 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 0.3% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Invision Community versions 5.0.0 through 5.0.6 contain a remote code execution vulnerability in the themeeditor controller at /applications/core/modules/front/system/themeeditor.php. Unauthenticated callers can reach the protected customCss method, which forwards the user-supplied content parameter directly to Theme::makeProcessFunction; the template engine then evaluates the supplied string as PHP, enabling arbitrary code execution. The flaw is tracked as CVE-2025-47916 and carries a CVSS 3.1 score of 10.0.

An unauthenticated remote attacker can submit a crafted request to themeeditor.php containing malicious template syntax. Successful exploitation grants the attacker the ability to execute arbitrary PHP on the server, resulting in full confidentiality, integrity, and availability impact under the affected component’s security context.

The vendor’s release notes for version 5.0.7 and the accompanying security advisories at karmainsecurity.com and seclists.org indicate that the issue is resolved by upgrading to Invision Community 5.0.7; the patch restricts access to the customCss method and prevents unauthenticated invocation of the template-processing routine. The associated EPSS score remains high at approximately 0.91.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
T1559.003 XPC Services Execution
Adversaries can provide malicious content to an XPC service daemon for local code execution.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-23376Shared CWE-1336, CWE-94
CVE-2026-54654Shared CWE-1336, CWE-94
CVE-2025-66437Shared CWE-1336, CWE-94
CVE-2026-22244Shared CWE-1336, CWE-94
CVE-2026-26026Shared CWE-1336, CWE-94
CVE-2025-66435Shared CWE-1336, CWE-94
CVE-2024-4040Shared CWE-1336, CWE-94
CVE-2026-54653Shared CWE-1336, CWE-94
CVE-2025-66434Shared CWE-1336, CWE-94
CVE-2023-2259Shared CWE-1336, CWE-94

Affected Assets

invisioncommunity
invisioncommunity
5.0.0 — 5.0.7

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.3.7
  • V1.3.10
  • V1.3.1

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and static analysis can discover missing neutralization of template directives.

Input validation rejects or sanitizes untrusted data before it reaches the template engine, stopping injection of special syntax.

Least privilege limits the damage an injected code fragment can perform once executed.

Requiring documented secure development standards and tools enforces use of safe code-generation APIs and escaping.

Security engineering principles require use of safe templating APIs and proper escaping of external input.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require proper input neutralization in template engines to prevent injection.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

A.8.29's programme of code review, static analysis, dynamic testing and penetration testing is the complete pre-production discovery set for code injection: eval/dynamic-execution sinks are visible to SAST, code review catches them, and penetration testing reaches the externally exploitable instances, with no nameable remainder.

prevents

Training developers on template engine security (sandboxing, escaping, untrusted input handling) reduces some instances of CWE-1336, but the topic is specialized and not all developers receive this specific training, so the effect is a minority one — parallel to A.6.3 vs CWE-598.

prevents

Secure coding standards require proper escaping or sandboxing of template directives, directly mitigating CWE-1336.

prevents

A.8.30 carries its effect through the secure-design, coding and testing practices its contract requires of the supplier (8.25–8.29), so a faithfully implemented clause reduces template-injection defects in delivered code the way those practices do; the practice is fallible and the clause depends on the referenced controls being in place, so a minority of instances are prevented.

finds

A.8.8's reach is DISCLOSURE — it sees template injection only where it surfaces as a published advisory in a third-party component (the observed CVEs show SSTI/CSTI does commonly appear as CVEs in libraries and engines), but the bulk of template injection lives in first-party application code that A.8.8's disclosure-based programme does not reach, mirroring the A.8.8 -> CWE-89 anchor at the same rung.

References