{"id":"CVE-2025-47916","published":"2025-05-16T00:00:00Z","modified":"2025-05-17T05:03:09Z","title":"Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php","vendor":"invisioncommunity","product":"Invision Power Board","tier":"core","eol":null,"affectedVersions":[{"vendor":"invisioncommunity","product":"Invision Power Board","versions":[">= 5.0.0, < 5.0.7"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-05-16T16:27:48.468993Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Invision Community 5.0.0 before 5.0.7 (Invision Power Board) has a flaw in the themeeditor controller at applications/core/modules/front/system/themeeditor.php, where the customCss method, which unauthenticated users can invoke, passes the content parameter to Theme::makeProcessFunction() and so into the template engine without neutralisation. An unauthenticated remote attacker can exploit this by sending crafted template strings to themeeditor.php to execute arbitrary PHP code on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:12:06Z"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.59282,"percentile":0.99342,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2025-06-06","exploitedFirstSeen":"2025-06-06","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2025-47916","date":"2025-06-06"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://invisioncommunity.com/release-notes-v5/507-r41/","tags":[]},{"url":"https://karmainsecurity.com/KIS-2025-02","tags":[]},{"url":"http://seclists.org/fulldisclosure/2025/May/4","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2025-15448","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-15448","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":52294,"url":"https://www.exploit-db.com/exploits/52294","title":"Invision Community 5.0.6 - Remote Code Execution (RCE)","type":"remote","platform":"multiple","date":"2025-05-18","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2025-05-18"},"pocGithub":{"count":1,"skipped":0,"earliest":"2025-11-21","earliestUrl":"https://github.com/Web3-Serializer/CVE-2025-47916","repos":[{"name":"Web3-Serializer/CVE-2025-47916","url":"https://github.com/Web3-Serializer/CVE-2025-47916","stars":1,"created":"2025-11-21"}]},"metasploit":[{"name":"Invision Community 5.0.6 customCss RCE","module":"exploit/multi/http/invision_customcss_rce","type":"exploit","disclosureDate":"2025-05-16","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/invision_customcss_rce.rb"}],"nuclei":[{"id":"CVE-2025-47916","name":"Invision Community <=5.0.6 Unauthenticated RCE via Template Injection","severity":"critical","path":"http/cves/2025/CVE-2025-47916.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-47916.yaml"}],"first":{"date":"2025-05-16","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/invision_customcss_rce.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2025-05-16","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2025-47916","provenance":"source"},{"date":"2025-05-16","kind":"exploit-public","label":"First public exploit: Metasploit; later: Exploit-DB 2025-05-18, PoC-in-GitHub 2025-11-21","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/invision_customcss_rce.rb","provenance":"source"},{"date":"2025-06-06","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2025-47916","provenance":"source"}],"speed":{"daysToPublicExploit":0,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":66.9,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 537 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.87,"detail":"percentile 0.9934"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 1 PoC-in-GitHub repo; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}