---
title: "CVE-2024-31997: XWiki Platform remote code execution from account through UIExtension parameters"
url: https://erroneo.us/security/cve/CVE-2024-31997/
description: "CVE-2024-31997 (org.xwiki.platform:xwiki-platform-uiextension-api (Maven)): XWiki Platform is a generic wiki platform. Prior to versions 4.10.19, 15.5.4…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-04-10
date_modified: 2024-08-13
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-31997"
kev: false
cvss: 10
epss: 0.73925
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** High exploit likelihood. EPSS ranks it in the top 5% of all CVEs for likely exploitation in the next 30 days. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 73.9% , percentile 99: FIRST’s model estimates a 73.9% chance of exploitation activity in the next 30 days, higher than 99% of all scored CVEs (very high). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes org.xwiki.platform:xwiki-platform-uiextension-api (Maven) < 14.10.19, fixed in 14.10.19 ; org.xwiki.platform:xwiki-platform-uiextension-api (Maven) >= 15.0-rc-1, < 15.5.4, fixed in 15.5.4 ; org.xwiki.platform:xwiki-platform-uiextension-api (Maven) >= 15.6-rc-1, < 15.9-rc-1, fixed in 15.9-rc-1 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Maven `org.xwiki.platform:xwiki-platform-uiextension-api` < 14.10.19 → fixed: 14.10.19
- Maven `org.xwiki.platform:xwiki-platform-uiextension-api` >= 15.0-rc-1, < 15.5.4 → fixed: 15.5.4
- Maven `org.xwiki.platform:xwiki-platform-uiextension-api` >= 15.6-rc-1, < 15.9-rc-1 → fixed: 15.9-rc-1

## Affected products (CVE record)

- xwiki xwiki-platform: < 14.10.19, >= 15.0-rc-1, < 15.5.4, >= 15.6-rc-1, < 15.9-rc-1

## Severity

- GitHub_M CVSS 3.1: 10 `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 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 73.92% probability of exploitation activity in the next 30 days; percentile 99.

## Sources

- [GitHub Advisory GHSA-c2gg-4gq4-jv5j](https://github.com/advisories/GHSA-c2gg-4gq4-jv5j)
- [CVE.org record CVE-2024-31997](https://www.cve.org/CVERecord?id=CVE-2024-31997)
- [NVD entry CVE-2024-31997](https://nvd.nist.gov/vuln/detail/CVE-2024-31997)
- [github.com](https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c2gg-4gq4-jv5j)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/171e7c7d0e56deaa7b3678657ae26ef95379b1ea)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/1b2574eb966457ca4ef34e557376b8751d1be90d)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/56748e154a9011f0d6239bec0823eaaeab6ec3f7)
- [jira.xwiki.org](https://jira.xwiki.org/browse/XWIKI-21335)

---
Source page: https://erroneo.us/security/cve/CVE-2024-31997/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
