{"id":"CVE-2023-40572","aliases":["GHSA-4f8m-7h83-9f6m"],"url":"https://o3.security/vulnerability/CVE-2023-40572","summary":"XWiki Platform vulnerable to CSRF privilege escalation/RCE via the create action","details":"### 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","published":"2023-08-24T01:15:33.272Z","modified":"2026-08-12T03:51:37.556483706Z","cvss":{"score":9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"},"epss":{"score":0.00545,"percentile":0.43321,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-oldcore","fixedVersion":"14.10.9"},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-oldcore","fixedVersion":"15.4-rc-1"}],"fix":{"url":"https://github.com/xwiki/xwiki-platform/commit/4b20528808d0c311290b0d9ab2cfc44063380ef7","label":"xwiki/xwiki-platform@4b20528"},"references":[{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20849"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40572.json"},{"type":"ADVISORY","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-4f8m-7h83-9f6m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40572"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/4b20528808d0c311290b0d9ab2cfc44063380ef7"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/123e5d7e4ca06bf75b95aaef665aafc4fa9cae64"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-platform"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:37.556483706Z"}}