CVE-2024-31982:
XWiki Platform: Remote code execution as guest via DatabaseSearch
10
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99902%
CWE
Published
4/10/2024
Updated
1/21/2025
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.xwiki.platform:xwiki-platform-search-ui | maven | >= 2.4-milestone-1, < 14.10.20 | 14.10.20 |
org.xwiki.platform:xwiki-platform-search-ui | maven | >= 15.0-rc-1, < 15.5.4 | 15.5.4 |
org.xwiki.platform:xwiki-platform-search-ui | maven | >= 15.6-rc-1, < 15.10-rc-1 | 15.10-rc-1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The key vulnerability stemmed from how the DatabaseSearch
template handled RSS feed generation. The pre-patch version used unsafe triple-brace syntax to render feed output, which doesn't escape content and allows XWiki
syntax interpretation. Attackers could inject closing template tags followed by Groovy
code, which would be executed during rendering. The patch replaced this with direct response writing, bypassing template processing. The vulnerable pattern is clearly shown in the diff where {{$xwiki.feed.getFeedOutput(...)}}
was removed and replaced with safe output handling methods.