# CVE-2024-31997: XWiki Platform remote code execution from account through UIExtension parameters

- Severity: Critical 10.0 (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: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): 73.9%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-04-10T17:16:53.000Z
- Modified: 2026-09-10T03:50:00.352Z
- Also known as: GHSA-c2gg-4gq4-jv5j
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

XWiki Platform is a generic wiki platform. Prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, parameters of UI extensions are always interpreted as Velocity code and executed with programming rights. Any user with edit right on any document like the user's own profile can create UI extensions. This allows remote code execution and thereby impacts the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9-RC1. No known workarounds are available.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: < 14.10.19; >= 15.0-rc-1, < 15.5.4; >= 15.6-rc-1, < 15.9-rc-1
- xwiki xwiki: before 14.10.19; from 15.0-rc-1 before 15.5.4; from 15.6-rc-1 before 15.9-rc-1; from 15.0 before 15.5.4; from 15.6 before 15.9
- org.xwiki.platform:xwiki-platform-uiextension-api (Maven): before 14.10.19; from 15.0-rc-1 before 15.5.4; from 15.6-rc-1 before 15.9-rc-1

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- 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:H`
- 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-c2gg-4gq4-jv5j> (exploit, vendor-advisory, web)
- <https://jira.xwiki.org/browse/XWIKI-21335> (exploit, vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/171e7c7d0e56deaa7b3678657ae26ef95379b1ea> (patch, web)
- <https://github.com/xwiki/xwiki-platform/commit/1b2574eb966457ca4ef34e557376b8751d1be90d> (patch, web)
- <https://github.com/xwiki/xwiki-platform/commit/56748e154a9011f0d6239bec0823eaaeab6ec3f7> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31997> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2024-31997](https://www.cve.org/CVERecord?id=CVE-2024-31997), CVE Terms of Use, modified 2024-08-13
- GitHub Advisory Database: [GHSA-c2gg-4gq4-jv5j](https://github.com/advisories/GHSA-c2gg-4gq4-jv5j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-31997](https://nvd.nist.gov/vuln/detail/CVE-2024-31997), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31997 · Whole record: https://cve.day/CVE-2024-31997.json · Rebuilt by cve.day 2026-11-25T22:58:39.081Z
