# CVE-2023-40572: XWiki Platform vulnerable to CSRF privilege escalation/RCE via the create action

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-23T20:37:04.000Z
- Modified: 2026-09-10T03:49:57.367Z
- Also known as: GHSA-4f8m-7h83-9f6m
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 3.2-milestone-3, < 14.10.9; >= 15.0-rc-1, < 15.4-rc-1
- 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
- xwiki xwiki: before 14.10.9; 15.0; 15.1; 15.2; 15.3

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://jira.xwiki.org/browse/XWIKI-20849> (exploit, issue-tracking, vendor-advisory, web)
- <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://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

- CVE List: [CVE-2023-40572](https://www.cve.org/CVERecord?id=CVE-2023-40572), CVE Terms of Use, modified 2024-10-02
- GitHub Advisory Database: [GHSA-4f8m-7h83-9f6m](https://github.com/advisories/GHSA-4f8m-7h83-9f6m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-40572](https://nvd.nist.gov/vuln/detail/CVE-2023-40572), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40572 · Whole record: https://cve.day/CVE-2023-40572.json · Rebuilt by cve.day 2026-11-25T22:58:27.324Z
