{"id":"CVE-2025-66474","published":"2025-12-10T21:59:58Z","modified":"2025-12-11T15:39:27Z","title":"XWiki vulnerable to remote code execution through insufficient protection against {{/html}} injection","vendor":"xwiki","product":"xwiki-rendering","tier":"tail","description":{"text":"XWiki Rendering is a generic rendering system that converts textual input in a given syntax (wiki syntax, HTML, etc) into another syntax (XHTML, etc). Versions 16.10.9 and below, 17.0.0-rc-1 through 17.4.2 and 17.5.0-rc-1 through 17.5.0 have insufficient protection against {{/html}} injection, which attackers can exploit through RCE. Any user who can edit their own profile or any other document can execute arbitrary script macros, including Groovy and Python macros, which enable remote code execution as well as unrestricted read and write access to all wiki contents. This issue is fixed in versions 16.10.10, 17.4.3 and 17.6.0-rc-1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03061,"percentile":0.88331,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-9xc6-c2rm-f27p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/12b780ccd5bca5fc8f74f46648d7e02fa04fbc11","tags":["x_refsource_MISC"]},{"url":"https://github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XRENDERING-693","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XRENDERING-792","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XRENDERING-793","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-23378","tags":["x_refsource_MISC"]}],"priority":{"score":23.8,"factors":[{"name":"EPSS percentile","points":17.67},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-rendering","versions":["< 16.10.10",">= 17.0.0-rc-1, < 17.4.3",">= 17.5.0-rc-1, < 17.6.0-rc-1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-12-11T15:39:13.257183Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.rendering:xwiki-rendering-xml","vulnerableRanges":["<16.10.10",">=17.0.0-rc-1, <17.4.3",">=17.5.0-rc-1, <17.6.0-rc-1"],"patched":["16.10.10","17.4.3","17.6.0-rc-1"],"from":["GHSA-9xc6-c2rm-f27p"],"provenance":"source"}],"summary":{"text":"The XWiki Rendering component (xwiki-rendering), which converts wiki syntax into other formats, does not sufficiently neutralise {{/html}} sequences in its input, allowing injected directives to be evaluated as code in affected versions up to 16.10.9 and in 17.0.0-rc-1 through 17.5.0. An attacker who has low-privileged authenticated access, such as the ability to edit their own profile or any document, can run script macros including Groovy and Python to achieve remote code execution and unrestricted read and write access to all wiki content, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:35Z"},"euvd":{"id":"EUVD-2025-202429","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-xwiki-rendering-cve-2023-32070","parents":[{"from":"CVE-2023-32070","to":"CVE-2025-66474","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java"],"commits":["https://github.com/xwiki/xwiki-rendering/commit/c40e2f5f9482ec6c3e71dbf1fff5ba8a5e44cdc1","https://github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49"],"basis":"shared function","functions":["XHTMLWikiPrinter"]}]},{"from":"CVE-2023-37908","to":"CVE-2025-66474","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java"],"commits":["https://github.com/xwiki/xwiki-rendering/commit/f4d5acac451dccaf276e69f0b49b72221eef5d2f","https://github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49"],"basis":"shared function","functions":["XHTMLWikiPrinter"]}]}],"children":[{"from":"CVE-2025-66474","to":"CVE-2025-53837","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-rendering-xml/src/main/java/org/xwiki/rendering/renderer/printer/XHTMLWikiPrinter.java"],"commits":["https://github.com/xwiki/xwiki-rendering/commit/92bc8095ed3acce15ab200c8525e1623b4898be5","https://github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49"],"basis":"shared function","functions":["printSpace"]}]}]}}