Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.platform/xwiki-platform-distribution-war
  4. ›
  5. CVE-2024-55663

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

December 12, 2024 (updated December 16, 2024)

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.

References

  • github.com/advisories/GHSA-wh34-m772-5398
  • github.com/xwiki/xwiki-platform
  • github.com/xwiki/xwiki-platform/commit/673076e2e8b88a36cdeaf7007843aa9ca1a068a0
  • github.com/xwiki/xwiki-platform/security/advisories/GHSA-wh34-m772-5398
  • jira.xwiki.org/browse/XWIKI-17568
  • nvd.nist.gov/vuln/detail/CVE-2024-55663

Code Behaviors & Features

Detect and mitigate CVE-2024-55663 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 6.3-milestone-2 before 13.10.5, all versions starting from 14.0-rc-1 before 14.3-rc-1

Fixed versions

  • 13.10.5
  • 14.3-rc-1

Solution

Upgrade to versions 13.10.5, 14.3-rc-1 or above.

Weakness

  • CWE-116: Improper Encoding or Escaping of Output

Source file

maven/org.xwiki.platform/xwiki-platform-distribution-war/CVE-2024-55663.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.