Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.platform/xwiki-platform-search-ui
  4. ›
  5. CVE-2023-50721

CVE-2023-50721: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

December 16, 2023

XWiki Platform is a generic wiki platform. Starting in 4.5-rc-1 and prior to versions 14.10.15, 15.5.2, and 15.7-rc-1, the search administration interface does not properly escape the id and label of search user interface extensions, allowing the injection of XWiki syntax containing script macros including Groovy macros that allow remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki instance. This attack can be executed by any user who can edit some wiki page like the user’s profile (editable by default) as user interface extensions that will be displayed in the search administration can be added on any document by any user. The necessary escaping has been added in XWiki 14.10.15, 15.5.2 and 15.7RC1. As a workaround, the patch can be applied manually applied to the page XWiki.SearchAdmin.

References

  • github.com/advisories/GHSA-7654-vfh6-rw6x
  • github.com/xwiki/xwiki-platform/commit/62863736d78ffd60d822279c5fb7fb9593042766
  • github.com/xwiki/xwiki-platform/security/advisories/GHSA-7654-vfh6-rw6x
  • jira.xwiki.org/browse/XWIKI-21200
  • nvd.nist.gov/vuln/detail/CVE-2023-50721

Code Behaviors & Features

Detect and mitigate CVE-2023-50721 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 4.5-rc-1 before 14.10.15, all versions starting from 15.0-rc-1 before 15.5.2, all versions starting from 15.6-rc-1 before 15.7-rc-1

Fixed versions

  • 14.10.15
  • 15.5.2
  • 15.7-rc-1

Solution

Upgrade to versions 14.10.15, 15.5.2, 15.7-rc-1 or above. *Note*: 15.7-rc-1 may be an unstable version. Use caution.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')
  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

maven/org.xwiki.platform/xwiki-platform-search-ui/CVE-2023-50721.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:28 +0000.