# CVE-2023-40177: XWiki Platform privilege escalation (PR) from account through AWM content fields

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L`
- 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): 1.06%, higher than 65% of CVEs (2026-12-01)
- Published: 2023-08-21T20:10:55.000Z
- Modified: 2026-09-10T03:49:57.385Z
- Also known as: GHSA-5mf8-v43w-mfxp
- Weaknesses: CWE-94, CWE-95
- 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. Any registered user can use the content field of their user profile page to execute arbitrary scripts with programming rights, thus effectively performing rights escalation. This issue is present since version 4.3M2 when AppWithinMinutes Application added support for the Content field, allowing any wiki page (including the user profile page) to use its content as an AWM Content field, which has a custom displayer that executes the content with the rights of the ``AppWithinMinutes.Content`` author, rather than the rights of the content author. The vulnerability has been fixed in XWiki 14.10.5 and 15.1RC1. The fix is in the content of the AppWithinMinutes.Content page that defines the custom displayer. By using the ``display`` script service to render the content we make sure that the proper author is used for access rights checks.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 4.3-milestone-2, < 14.10.5
- org.xwiki.platform:xwiki-platform-appwithinminutes-ui (Maven): from 4.3-milestone-2 before 14.10.5
- xwiki xwiki: from 4.3.1 before 14.10.5; 4.3; 15.0

## Every score

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

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-5mf8-v43w-mfxp> (mitigation, patch, vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/dfb1cde173e363ca5c12eb3654869f9719820262> (patch, web)
- <https://jira.xwiki.org/browse/XWIKI-7369> (issue-tracking, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40177> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2023-40177](https://www.cve.org/CVERecord?id=CVE-2023-40177), CVE Terms of Use, modified 2024-10-03
- GitHub Advisory Database: [GHSA-5mf8-v43w-mfxp](https://github.com/advisories/GHSA-5mf8-v43w-mfxp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-40177](https://nvd.nist.gov/vuln/detail/CVE-2023-40177), Public domain, modified 2026-06-17

---

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