CVE-2024-55663 XWiki Platform has an SQL injection in getdocuments.vm with sort parameter
Attackers can inject HQL via the sort parameter to read sensitive data or modify database contents in XWiki Platform.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-55663?
CVE-2024-55663 is a high-severity SQL injection vulnerability in Xwiki Xwiki, published on 12 Dec 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
XWiki Platform is a generic wiki platform. Starting in version 6.3-milestone-2 and prior to versions 13.10.5 and 14.3-rc-1, in `getdocument.vm`; the ordering of the returned documents is defined from an unsanitized request parameter (request.sort) and can allow any user to inject HQL. Depending on the used database backend, the attacker may be able to not only obtain confidential information such as password hashes from the database, but also execute UPDATE/INSERT/DELETE queries. This has been patched in 13.10.5 and 14.3-rc-1. There is no known workaround, other than upgrading XWiki.
Weakness: CWE-116
Which versions are affected by CVE-2024-55663?
4 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-distribution-war. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.xwiki.platform:xwiki-platform-distribution-war Maven | From 14.0-rc-1 | 14.3-rc-1 |
org.xwiki.platform:xwiki-platform-distribution-war Maven | From 14.0-rc-1 | 14.3-rc-1 |
org.xwiki.platform:xwiki-platform-distribution-war Maven | From 6.3-milestone-2 | 13.10.5 |
org.xwiki.platform:xwiki-platform-distribution-war Maven | From 6.3-milestone-2 | 13.10.5 |
Products include Xwiki Xwiki.
How do I fix CVE-2024-55663?
Upgrade org.xwiki.platform:xwiki-platform-distribution-war to a fixed version for your release line: 14.3-rc-1 or 13.10.5.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2024-55663 being exploited?
There is no known exploitation of CVE-2024-55663 in the wild and no public exploit code.
Other vulnerabilities in Xwiki Xwiki
- CVE-2025-24893 XWiki Platform Eval Injection
- CVE-2025-53836 XWiki Rendering is vulnerable to RCE attacks when processing nested macros
- CVE-2024-55662 XWiki allows remote code execution through the extension sheet
- CVE-2024-55877 XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList
- CVE-2024-37901 XWiki Platform vulnerable to remote code execution from account via SearchSuggestConfigSheet
Sources
Also known as GHSA-wh34-m772-5398.