{"id":"CVE-2023-40572","aliases":["CVE-2023-40572","GHSA-4f8m-7h83-9f6m"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki Platform vulnerable to CSRF privilege escalation/RCE via the create action","summary":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. The create action is vulnerable to a CSRF attack, allowing script and thus remote code execution when targeting a user with script/programming right, thus compromising the confidentiality, integrity and availability of the whole XWiki installation. When a user with script right views this image and a log message `ERROR foo - Script executed!` appears in the log, the XWiki installation is vulnerable. This has been patched in XWiki 14.10.9 and 15.4RC1 by requiring a CSRF token for the actual page creation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. The create action is vulnerable to a CSRF attack, allowing script and thus remote code execution when targeting a user with script/programming right, thus compromising the confidentiality, integrity and availability of the whole XWiki installation. When a user with script right views this image and a log message `ERROR foo - Script executed!` appears in the log, the XWiki installation is vulnerable. This has been patched in XWiki 14.10.9 and 15.4RC1 by requiring a CSRF token for the actual page creation.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe create action is vulnerable to a CSRF attack, allowing script and thus remote code execution when targeting a user with script/programming right, thus compromising the confidentiality, integrity and availability of the whole XWiki installation. To reproduce, the XWiki syntax `[[image:path:/xwiki/bin/create/Foo/WebHome?template=&parent=Main.WebHome&title=$services.logging.getLogger(%22foo%22).error(%22Script%20executed!%22)]]` can be added to any place that supports XWiki syntax like a comment. When a user with script right views this image and a log message `ERROR foo - Script executed!` appears in the log, the XWiki installation is vulnerable.\n\n### Patches\nThis has been patched in XWiki 14.10.9 and 15.4RC1 by requiring a CSRF token for the actual page creation.\n\n### Workarounds\nThere are no known workarounds.\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-20849\n* https://github.com/xwiki/xwiki-platform/commit/4b20528808d0c311290b0d9ab2cfc44063380ef7","format":"markdown","source":"ghsa"}],"published":"2023-08-23T20:37:04.000Z","modified":"2026-09-10T03:49:57.367Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"version":">= 3.2-milestone-3, < 14.10.9","status":"affected"},{"version":">= 15.0-rc-1, < 15.4-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.2-milestone-3","status":"affected","fixed":"14.10.9"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.0-rc-1","status":"affected","fixed":"15.4-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"14.10.9"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.1"},{"status":"affected","version":"15.1"},{"status":"affected","version":"15.2"},{"status":"affected","version":"15.2"},{"status":"affected","version":"15.3"},{"status":"affected","version":"15.3"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-4f8m-7h83-9f6m","tags":["patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/4b20528808d0c311290b0d9ab2cfc44063380ef7","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-20849","tags":["exploit","issue-tracking","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40572","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/123e5d7e4ca06bf75b95aaef665aafc4fa9cae64","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-10-02T20:18:17.614Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-40572","url":"https://www.cve.org/CVERecord?id=CVE-2023-40572","licence":"CVE Terms of Use","modified":"2024-10-02T20:19:27.637Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4f8m-7h83-9f6m","url":"https://github.com/advisories/GHSA-4f8m-7h83-9f6m","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:57.367Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-40572","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40572","licence":"Public domain","modified":"2026-06-17T06:18:31.253Z"}],"updatedAt":"2026-11-25T22:58:27.324Z","epss":{"score":0.00619,"percentile":0.51004,"date":"2026-12-01T12:00:22.000Z"}}