8.6high
XWiki Platform has an SQL injection in getdocuments.vm with sort parameter
- Severity
- 8.6high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.75% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wh34-m772-5398
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xwiki xwiki-platform | >= 6.3-milestone-2, < 13.10.5, >= 14.0-rc-1, < 14.3-rc-1 | CVE List |
| org.xwiki.platform:xwiki-platform-distribution-war (Maven) | from 6.3-milestone-2 before 13.10.5, from 14.0-rc-1 before 14.3-rc-1 | GitHub Advisory Database |
| xwiki xwiki | from 6.4 before 13.10.5, from 14.0 before 14.3, 6.3 | NVD |
All scores
| GitHub_M | 8.6high CVSS:4.0 | 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 |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
It's possible to employ database backend dependent techniques of breaking out of HQL query context, described, for example, here: https://www.sonarsource.com/blog/exploiting-hibernate-injections.
Patches
This has been patched in 13.10.5 and 14.3-rc-1.
Workarounds
There is no known workaround, other than upgrading XWiki.
References
https://jira.xwiki.org/browse/XWIKI-17568
For more information
If you have any questions or comments about this advisory:
- Open an issue in Jira XWiki.org
- Email us at Security Mailing List
NVD (es)
XWiki Platform es una plataforma wiki genérica. A partir de la versión 11.10.6 y antes de las versiones 13.10.5 y 14.3-rc-1, en `getdocument.vm`; el orden de los documentos devueltos se define a partir de un parámetro de solicitud no desinfectado (request.sort) y puede permitir a cualquier usuario inyectar HQL. Dependiendo del backend de la base de datos utilizado, el atacante puede no solo obtener información confidencial, como hashes de contraseñas, de la base de datos, sino también ejecutar consultas UPDATE/INSERT/DELETE. Esto se ha corregido en 13.10.5 y 14.3-rc-1. No se conoce ningún workaround, aparte de actualizar XWiki.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-55663 changed 2024-12-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wh34-m772-5398 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2024-55663 changed 2026-06-17 | Public domain |