Loading advisory.
Loading advisory.
XWiki Platform: Privilege escalation (PR) from user registration through PDFClass
Remote code execution is possible via PDF export templates. To reproduce on an installation, register a new user account with username PDFClass if XWiki.PDFClass does not exist. On XWiki.PDFClass, use the class editor to add a "style" property of type "TextArea" and content type "Plain Text".
Published 2024-04-10 17:11 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| org.xwiki.platform:xwiki-platform-oldcore | Maven | >= 3.0.1, < 14.10.20 >= 15.0-rc-1, < 15.5.4 >= 15.6-rc-1, < 15.10-rc-1 | 14.10.20, 15.5.4, 15.10-rc-1 | No single command for Maven. Update to 14.10.20, 15.5.4, 15.10-rc-1 in your build file. |
Remote code execution is possible via PDF export templates.
To reproduce on an installation, register a new user account with username PDFClass if XWiki.PDFClass does not exist.
On XWiki.PDFClass, use the class editor to add a "style" property of type "TextArea" and content type "Plain Text".
Then, add an object of class PDFClass and set the "style" attribute to $services.logging.getLogger('PDFClass').error("I got programming: $services.security.authorization.hasAccess('programming')").
Finally, go to <host>/xwiki/bin/export/Main/WebHome?format=pdf&pdftemplate=XWiki.PDFClass. If the logs contain "ERROR PDFClass - I got programming: true", the instance is vulnerable.
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, the instance needs to be updated.
https://jira.xwiki.org/browse/XWIKI-21337
https://github.com/xwiki/xwiki-platform/commit/d28e21a670c69880b951e415dd2ddd69d273eae9
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.014 on 2026-11-24 to 0.032 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.014 | first score | v2026.06.15 |
| 2026-11-26 | 0.032 | 0.014 | v2026.06.15 |