CVE-2023-29510: Xwiki platform administration ui Code Injection Vulnerability
CRITICALCVE-2023-29510 is a CRITICAL (CVSS 9.9) code injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Xwiki platform administration ui libraries in the Maven ecosystem. The issue involves code injection via unescaped translations in xwiki-platform. Remediation is available by upgrading affected packages to version 14.10.2.
CVE-2023-29510 at a Glance
Security Impact
CVSS: 9.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2023-29510
To remediate this vulnerability, upgrade all affected Xwiki platform administration ui 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-administration-ui</artifactId>
<version>14.10.2</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-2023-29510, 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 administration ui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.10.2), 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Xwiki platform administration ui, 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-2023-29510 Affected Xwiki platform administration ui Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.platform:xwiki-platform-administration-ui
|
Maven |
≥ 4.3-milestone-2
< 14.10.2
|
14.10.2
|
References
Frequently Asked Questions
What is CVE-2023-29510?
Which Xwiki platform administration ui versions are affected?
What version fixes CVE-2023-29510?
Is xwiki-platform-administration-ui affected?
What is the CVSS score of CVE-2023-29510?
What CWE is associated with CVE-2023-29510?
How can I check Maven dependencies for CVE-2023-29510?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4v38-964c-xjmw",
"modified" : "2023-04-19T18:26:35Z",
"published" : "2023-04-19T18:26:35Z",
"aliases" : [ "CVE-2023-29510" ],
"summary" : "Code injection via unescaped translations in xwiki-platform",
"details" : "### Impact\nIn XWiki, every user can add translations that are only applied to the current user. This also allows overriding existing translations. Such translations are often included in privileged contexts without any escaping which allows remote code execution for any user who has edit access on at least one document which could be the user's own profile where edit access is enabled by default.\n\nThe following describes a proof of concept exploit to demonstrate this vulnerability:\n\n1. Edit the user profile with the wiki editor and set the content to\n```\nerror={{/html}} {{async async=\"true\" cached=\"false\" context=\"doc.reference\"}}{{groovy}}println(\"hello from groovy!\"){{/groovy}}{{/async}}\n```\n2. Use the object editor to add an object of type `XWiki.TranslationDocumentClass` with scope `USER`.\n3. Open the document `WikiManager.AdminWikiDescriptorSheet`.\n\nThe expected result would be that a message with title `{{/html}} {{async async=\"true\" cached=\"false\" context=\"doc.reference\"}}{{groovy}}println(\"hello from groovy!\"){{/groovy}}{{/async}}` is displayed while in fact an error that the HTML macro couldn't be executed is displayed, followed by the text \"hello from groovy!\" and some raw HTML, showing that the Groovy macro has been executed.\n\n### Patches\n\nA mitigation for this vulnerability is part of XWiki 14.10.2 and XWiki 15.0 RC1: translations with user scope now require script right. This means that regular users cannot exploit this anymore as users don't have script right by default anymore starting with XWiki 14.10.\n\n### Workarounds\n\nThere are no known workarounds apart from upgrading to a patched versions.\n\n### References\n\n* https://jira.xwiki.org/browse/XWIKI-19749\n* https://github.com/xwiki/xwiki-platform/commit/d06ff8a58480abc7f63eb1d4b8b366024d990643\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_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-administration-ui"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.3-milestone-2"
}, {
"fixed" : "14.10.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-4v38-964c-xjmw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-29510"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/d06ff8a58480abc7f63eb1d4b8b366024d990643"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xwiki/xwiki-platform"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/XWIKI-19749"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-04-19T18:26:35Z",
"nvd_published_at" : "2023-04-19T00:15:08Z"
}
}