---
title: "CVE-2024-31981: XWiki Platform: Privilege escalation (PR) from user registration through PDFClass"
url: https://erroneo.us/security/cve/CVE-2024-31981/
description: "CVE-2024-31981 (org.xwiki.platform:xwiki-platform-oldcore (Maven)): XWiki Platform is a generic wiki platform. Starting in version 3.0.1 and prior to…"
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-31981"
kev: false
cvss: 10
epss: 0.01447
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-31981: XWiki Platform: Privilege escalation (PR) from user registration through PDFClass

**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?

- 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 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) >= 3.0.1, < 14.10.20, fixed in 14.10.20 ; 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 3.0.1 and prior to versions 4.10.20, 15.5.4, and 15.10-rc-1, remote code execution is possible via PDF export templates. This vulnerability has been patched in XWiki 14.10.20, 15.5.4 and 15.10-rc-1. If PDF templates are not typically used on the instance, an administrator can create the document XWiki.PDFClass and block its edition, after making sure that it does not contain a style attribute. Otherwise, there are no known workarounds aside from upgrading.

## Affected packages

- Maven `org.xwiki.platform:xwiki-platform-oldcore` >= 3.0.1, < 14.10.20 → fixed: 14.10.20
- 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: >= 3.0.1, < 14.10.20, >= 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 none , 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-vxwr-wpjv-qjq7](https://github.com/advisories/GHSA-vxwr-wpjv-qjq7)
- [CVE.org record CVE-2024-31981](https://www.cve.org/CVERecord?id=CVE-2024-31981)
- [NVD entry CVE-2024-31981](https://nvd.nist.gov/vuln/detail/CVE-2024-31981)
- [github.com](https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-vxwr-wpjv-qjq7)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/480186f9d2fca880513da8bc5a609674d106cbd3)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/a4ad14d9c1605a5ab957237e505ebbb29f5b9d73)
- [github.com](https://github.com/xwiki/xwiki-platform/commit/d28e21a670c69880b951e415dd2ddd69d273eae9)
- [jira.xwiki.org](https://jira.xwiki.org/browse/XWIKI-21337)

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