9.1critical
XWiki Platform vulnerable to CSRF privilege escalation/RCE via the create action
- Severity
- 9.1critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.62% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4f8m-7h83-9f6m
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xwiki xwiki-platform | >= 3.2-milestone-3, < 14.10.9, >= 15.0-rc-1, < 15.4-rc-1 | CVE List |
| org.xwiki.platform:xwiki-platform-oldcore (Maven) | from 3.2-milestone-3 before 14.10.9, from 15.0-rc-1 before 15.4-rc-1 | GitHub Advisory Database |
| xwiki xwiki | before 14.10.9, 15.0, 15.1, 15.2, 15.3 | NVD |
All scores
| GitHub_M | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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. 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.
Patches
This has been patched in XWiki 14.10.9 and 15.4RC1 by requiring a CSRF token for the actual page creation.
Workarounds
There are no known workarounds.
References
References
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-4f8m-7h83-9f6m | patch, vendor-advisory, web | |
| https://github.com/xwiki/xwiki-platform/commit/4b20528808d0c311290b0d9ab2cfc44063380ef7 | patch, web | |
| https://jira.xwiki.org/browse/XWIKI-20849 | exploit, issue-tracking, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-40572 | advisory | |
| https://github.com/xwiki/xwiki-platform/commit/123e5d7e4ca06bf75b95aaef665aafc4fa9cae64 | web | |
| https://github.com/xwiki/xwiki-platform | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-40572 changed 2024-10-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4f8m-7h83-9f6m changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-40572 changed 2026-06-17 | Public domain |