{"schemaVersion":3,"id":"CVE-2025-47916","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-05-16T00:00:00.000Z","modified":"2025-05-17T05:03:09.924Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.84188,"percentile":0.99698,"severity":"critical","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.45600000000000085,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.83732},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.84188,"percentile":0.99698}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.83732,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.83611,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.84188,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.84188,"percentile":0.99698}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_A192015C447AA20C","name":"Exploit Reference (karmainsecurity.com)","source":"reference","url":"https://karmainsecurity.com/KIS-2025-02","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_MULTI_HTTP_INVISION_CUSTOMCSS_RCE","name":"Invision Community 5.0.6 customCss RCE","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/multi/http/invision_customcss_rce.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/multi/http/invision_customcss_rce","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["ioc-in-logs"],"reliability":["repeatable-session"]}},{"id":"52294","name":"Invision Community 5.0.6 - Remote Code Execution (RCE)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/52294","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"remote","platform":"multiple","file":"exploits/multiple/remote/52294.php","codes":["CVE-2025-47916"]},"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine","description":"The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1336.html"},{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"invisioncommunity","product":"invision_power_board","name":"invision power board","label":"invision_power_board","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0, < 5.0.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 5.0.7","eol":null,"hubHref":"/vendor/invisioncommunity/invision_power_board"},{"vendor":"invisioncommunity","product":"invisioncommunity","name":"invisioncommunity","label":"invisioncommunity","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0, < 5.0.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 5.0.7","eol":null,"hubHref":"/vendor/invisioncommunity/invisioncommunity"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://invisioncommunity.com/release-notes-v5/507-r41/","label":"invisioncommunity.com/release-notes-v5/507-r41/","hostname":"invisioncommunity.com","tags":["Release Notes"]},{"url":"https://karmainsecurity.com/KIS-2025-02","label":"karmainsecurity.com/KIS-2025-02","hostname":"karmainsecurity.com","tags":["Exploit","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2025/May/4","label":"seclists.org/fulldisclosure/2025/May/4","hostname":"seclists.org","tags":["Mailing List","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-05-16T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-17T05:03:09.924Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T08:31:54.247Z","stale":false,"partial":false}}