CVE-2023-45138: Application changerequest ui Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-f776-w9v2-7vfj
CVSS 10.0
CWE-79
Published
Advisory Summary

CVE-2023-45138 is a CRITICAL (CVSS 10.0) remote code execution vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Application changerequest ui libraries in the Maven ecosystem. The issue involves xwiki change request application ui xss and remote code execution through change request title. Remediation is available by upgrading affected packages to version 1.9.2.

CVE-2023-45138 at a Glance

CVE Identifier CVE-2023-45138
GHSA Identifier GHSA-f776-w9v2-7vfj
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Application changerequest ui
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 10.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-45138

To remediate this vulnerability, upgrade all affected Application changerequest 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.

org.xwiki.contrib.changerequest:application-changerequest-ui fixed: 1.9.2
<dependency>
    <groupId>org.xwiki.contrib.changerequest</groupId>
    <artifactId>application-changerequest-ui</artifactId>
    <version>1.9.2</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.xwiki.contrib.changerequest

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-45138, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.xwiki.contrib.changerequest

Analyze the terminal output to locate any version of Application changerequest ui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.xwiki.contrib.changerequest 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Application changerequest 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

### Impact It's possible for a user without any specific right to perform script injection and remote code execution just by inserting an appropriate title when creating a new Change Request. This vulnerability is particularly critical as Change Request aims at being created by user without any particular rights. ### Patches The vulnerability has been fixed in Change Request 1.9.2. ### Workarounds It's possible to workaround the issue without upgrading by editing the document `ChangeRequest.Code.ChangeRequestSheet` and by performing the same change as in the commit: https://github.com/xwiki-contrib/application-changerequest/commit/7565e720117f73102f5a276239eabfe85e15cff4. ### References * JIRA ticket: https://jira.xwiki.org/browse/CRAPP-298 * Commit of the fix: https://github.com/xwiki-contrib/application-changerequest/commit/7565e720117f73102f5a276239eabfe85e15cff4 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki.org](https://jira.xwiki.org/) * Email us at [Security Mailing List](mailto:security@xwiki.org) ### Attribution Thanks Michael Hamann for the report.

CVE-2023-45138 Affected Application changerequest ui Versions

1 component(s)
Fixed Versions:
1.9.2
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.contrib.changerequest:application-changerequest-ui
Maven
≥ 0.11
< 1.9.2
1.9.2

References

Frequently Asked Questions

What is CVE-2023-45138?
CVE-2023-45138 is a security vulnerability in Application changerequest ui involving XWiki Change Request Application UI XSS and remote code execution through change request title under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Application changerequest ui versions are affected?
Affected versions include releases prior to 1.9.2 across affected packages: org.xwiki.contrib.changerequest:application-changerequest-ui.
What version fixes CVE-2023-45138?
Upgrading to 1.9.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is application-changerequest-ui affected?
Yes, org.xwiki.contrib.changerequest:application-changerequest-ui is affected in releases prior to 1.9.2. Upgrade your dependency to 1.9.2 or later.
What is the CVSS score of CVE-2023-45138?
CVE-2023-45138 has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-45138?
CVE-2023-45138 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Maven dependencies for CVE-2023-45138?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.contrib.changerequest'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f776-w9v2-7vfj",
  "modified" : "2023-10-17T02:19:16Z",
  "published" : "2023-10-17T02:19:16Z",
  "aliases" : [ "CVE-2023-45138" ],
  "summary" : "XWiki Change Request Application UI XSS and remote code execution through change request title",
  "details" : "### Impact\n\nIt's possible for a user without any specific right to perform script injection and remote code execution just by inserting an appropriate title when creating a new Change Request. \nThis vulnerability is particularly critical as Change Request aims at being created by user without any particular rights.\n\n### Patches\n\nThe vulnerability has been fixed in Change Request 1.9.2. \n\n### Workarounds\n\nIt's possible to workaround the issue without upgrading by editing the document `ChangeRequest.Code.ChangeRequestSheet` and by performing the same change as in the commit: https://github.com/xwiki-contrib/application-changerequest/commit/7565e720117f73102f5a276239eabfe85e15cff4. \n\n### References\n\n  * JIRA ticket: https://jira.xwiki.org/browse/CRAPP-298\n  * Commit of the fix: https://github.com/xwiki-contrib/application-changerequest/commit/7565e720117f73102f5a276239eabfe85e15cff4\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)\n\n### Attribution\n\nThanks Michael Hamann for the report.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.contrib.changerequest:application-changerequest-ui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11"
      }, {
        "fixed" : "1.9.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki-contrib/application-changerequest/security/advisories/GHSA-f776-w9v2-7vfj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-45138"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki-contrib/application-changerequest/commit/7565e720117f73102f5a276239eabfe85e15cff4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki-contrib/application-changerequest"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/CRAPP-298"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-17T02:19:16Z",
    "nvd_published_at" : "2023-10-12T17:15:09Z"
  }
}