{"id":"CVE-2024-55663","aliases":["CVE-2024-55663","GHSA-wh34-m772-5398"],"related":["CVE-2024-55879"],"kind":"vulnerability","state":"published","title":"XWiki Platform has an SQL injection in getdocuments.vm with sort parameter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn `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.\n\nDepending 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.\n\nIt'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.\n\n### Patches\n\nThis has been patched in 13.10.5 and 14.3-rc-1.\n\n### Workarounds\n\nThere is no known workaround, other than upgrading XWiki.\n\n### References\n\nhttps://jira.xwiki.org/browse/XWIKI-17568\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-12-12T18:53:49.491Z","modified":"2026-06-17T08:11:22.150Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-116"],"affected":[{"ranges":[{"version":">= 6.3-milestone-2, < 13.10.5","status":"affected"},{"version":">= 14.0-rc-1, < 14.3-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.3-milestone-2","status":"affected","fixed":"13.10.5"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-distribution-war","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"14.0-rc-1","status":"affected","fixed":"14.3-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-distribution-war","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-distribution-war","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"6.4","fixed":"13.10.5"},{"status":"affected","introduced":"14.0","fixed":"14.3"},{"status":"affected","version":"6.3"},{"status":"affected","version":"6.3"},{"status":"affected","version":"6.3"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-wh34-m772-5398","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/673076e2e8b88a36cdeaf7007843aa9ca1a068a0","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-17568","tags":["vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55663","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-12-13T14:58:07.606Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-55663","url":"https://www.cve.org/CVERecord?id=CVE-2024-55663","licence":"CVE Terms of Use","modified":"2024-12-16T18:08:43.496Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wh34-m772-5398","url":"https://github.com/advisories/GHSA-wh34-m772-5398","licence":"CC-BY-4.0","modified":"2026-02-04T02:41:15.264Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-55663","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55663","licence":"Public domain","modified":"2026-06-17T08:11:22.150Z"}],"updatedAt":"2026-11-25T22:58:50.068Z","epss":{"score":0.0075,"percentile":0.56159,"date":"2026-12-01T12:00:22.000Z"}}