CVE-2024-55663 XWiki Platform has an SQL injection in getdocuments.vm with sort parameter

High 8.6 Published Updated

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.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-distribution-war MavenFrom 14.0-rc-114.3-rc-1
org.xwiki.platform:xwiki-platform-distribution-war MavenFrom 14.0-rc-114.3-rc-1
org.xwiki.platform:xwiki-platform-distribution-war MavenFrom 6.3-milestone-213.10.5
org.xwiki.platform:xwiki-platform-distribution-war MavenFrom 6.3-milestone-213.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.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-wh34-m772-5398.

Is CVE-2024-55663 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free