CVE-2024-55663: Xwiki platform distribution war SQL Injection Vulnerability
HIGHCVE-2024-55663 is a HIGH sql injection vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Xwiki platform distribution war libraries in the Maven ecosystem. The issue involves xwiki platform has an sql injection in getdocuments.vm with sort parameter. Remediation is available by upgrading affected packages to version 13.10.5, 14.3-rc-1.
CVE-2024-55663 at a Glance
How to Fix CVE-2024-55663
To remediate this vulnerability, upgrade all affected Xwiki platform distribution war dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-distribution-war</artifactId>
<version>13.10.5</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-distribution-war</artifactId>
<version>14.3-rc-1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.xwiki.platform
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-55663, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.xwiki.platform
Analyze the terminal output to locate any version of Xwiki platform distribution war in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 13.10.5), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Xwiki platform distribution war, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-55663 Affected Xwiki platform distribution war Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.platform:xwiki-platform-distribution-war
|
Maven |
≥ 6.3-milestone-2
< 13.10.5
|
13.10.5
|
|
org.xwiki.platform:xwiki-platform-distribution-war
|
Maven |
≥ 14.0-rc-1
< 14.3-rc-1
|
14.3-rc-1
|
References
Frequently Asked Questions
What is CVE-2024-55663?
Which Xwiki platform distribution war versions are affected?
What version fixes CVE-2024-55663?
Is xwiki-platform-distribution-war affected?
What CWE is associated with CVE-2024-55663?
How can I check Maven dependencies for CVE-2024-55663?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wh34-m772-5398",
"modified" : "2024-12-16T18:08:46Z",
"published" : "2024-12-12T19:22:12Z",
"aliases" : [ "CVE-2024-55663" ],
"summary" : "XWiki Platform has an SQL injection in getdocuments.vm with sort parameter",
"details" : "### 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)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-distribution-war"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.3-milestone-2"
}, {
"fixed" : "13.10.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-distribution-war"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "14.0-rc-1"
}, {
"fixed" : "14.3-rc-1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-wh34-m772-5398"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-55663"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/673076e2e8b88a36cdeaf7007843aa9ca1a068a0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xwiki/xwiki-platform"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/XWIKI-17568"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-116" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-12T19:22:12Z",
"nvd_published_at" : "2024-12-12T19:15:13Z"
}
}