---
title: "CVE-2024-31987: XWiki Platform remote code execution from account via custom skins support"
url: https://erroneo.us/security/cve/CVE-2024-31987/
description: "CVE-2024-31987 (org.xwiki.platform:xwiki-platform-oldcore (Maven)): XWiki Platform is a generic wiki platform. Starting in version 6.4-milestone-1 and prior…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-04-10
date_modified: 2024-08-20
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-31987"
kev: false
cvss: 10
epss: 0.01447
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-31987: XWiki Platform remote code execution from account via custom skins support

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.4% , percentile 73: FIRST’s model estimates a 1.4% chance of exploitation activity in the next 30 days, higher than 73% of all scored CVEs (moderate). 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-oldcore (Maven) >= 6.4-milestone-1, < 14.10.19, fixed in 14.10.19 ; org.xwiki.platform:xwiki-platform-oldcore (Maven) >= 15.0-rc-1, < 15.5.4, fixed in 15.5.4 ; org.xwiki.platform:xwiki-platform-oldcore (Maven) >= 15.6-rc-1, < 15.10-rc-1, fixed in 15.10-rc-1 . Check your lockfile, including transitive dependencies.

## What it is

XWiki Platform is a generic wiki platform. Starting in version 6.4-milestone-1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, any user who can edit any page like their profile can create a custom skin with a template override that is executed with programming right, thus allowing remote code execution. This has been patched in XWiki 14.10.19, 15.5.4 and 15.10RC1. No known workarounds are available except for upgrading.

## Affected packages

- Maven `org.xwiki.platform:xwiki-platform-oldcore` >= 6.4-milestone-1, < 14.10.19 → fixed: 14.10.19
- Maven `org.xwiki.platform:xwiki-platform-oldcore` >= 15.0-rc-1, < 15.5.4 → fixed: 15.5.4
- Maven `org.xwiki.platform:xwiki-platform-oldcore` >= 15.6-rc-1, < 15.10-rc-1 → fixed: 15.10-rc-1

## Affected products (CVE record)

- xwiki xwiki-platform: >= 6.4-milestone-1, < 14.10.19, >= 15.0-rc-1, < 15.5.4, >= 15.6-rc-1, < 15.10-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 poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.45% probability of exploitation activity in the next 30 days; percentile 73.

## Sources

- [GitHub Advisory GHSA-cv55-v6rw-7r5v](https://github.com/advisories/GHSA-cv55-v6rw-7r5v)
- [CVE.org record CVE-2024-31987](https://www.cve.org/CVERecord?id=CVE-2024-31987)
- [NVD entry CVE-2024-31987](https://nvd.nist.gov/vuln/detail/CVE-2024-31987)
- [github.com](https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-cv55-v6rw-7r5v)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/3d4dbb41f52d1a6e39835cfb1695ca6668605a39)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/626d2a5dbf95b4e719ae13bf1a0a9c76e4edd5a2)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/da177c3c972e797d92c1a31e278f946012c41b56)
- [jira.xwiki.org](https://jira.xwiki.org/browse/XWIKI-21478)

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