Skip to content
Heist/ feed
Back to feed
Critical

XWiki Platform RCE from account through SearchAdmin

Type: advisorySources: OSV

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 doesn't 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`.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-50721
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 00:19 UTC · Revision 1

Source evidence

XWiki Platform RCE from account through SearchAdmin

core-osv · Original source

Published 15 Dec 2023, 19:02 UTC

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 doesn't 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`.

osv:CVE-2023-50721
Complete source record
{
  "id": "42b2849e597c9810667e5516c0952baaf68fd0f3eade5a2ddc5a1c17baf57846",
  "url": "https://osv.dev/vulnerability/CVE-2023-50721",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "XWiki Platform RCE from account through SearchAdmin",
    "summary": "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 doesn't 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`.",
    "evidence": "osv:CVE-2023-50721",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2023-50721",
      "aliases": [
        "CVE-2023-50721",
        "GHSA-7654-vfh6-rw6x"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-commons",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2f702bcef87967a9264fdb12737599870391c5ad"
                },
                {
                  "fixed": "8dfb9fcb4f456c70f82ea670ca0e2f3dee373ee4"
                },
                {
                  "introduced": "fdba4ca1398766e912f7888af5bdefbeef60d8b0"
                },
                {
                  "fixed": "675930a9c217d4fc1649e0ff05bc531efe751e5e"
                },
                {
                  "introduced": "1e0e26611ad39442be884e876d902441a51fd34a"
                },
                {
                  "last_affected": "1e0e26611ad39442be884e876d902441a51fd34a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.5"
                      },
                      {
                        "fixed": "14.10.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.0"
                      },
                      {
                        "fixed": "15.5.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:15.6:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.6-NA"
                      },
                      {
                        "last_affected": "15.6-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/xwiki/xwiki-platform",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a648f07649d7a69daefdcb606dd3444d1df00842"
                },
                {
                  "fixed": "0cb75bab7ac0c3ecbd0429e88726435b55970c8e"
                },
                {
                  "introduced": "96b4a230ee41ef74268c9720722f6473c705583d"
                },
                {
                  "fixed": "6a6f26d6eab666f0f9813bd67980613a9d118cab"
                },
                {
                  "introduced": "cb249a1a7570161ad6672449fbe89485fb489e95"
                },
                {
                  "fixed": "62863736d78ffd60d822279c5fb7fb9593042766"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.5"
                      },
                      {
                        "fixed": "14.10.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.0"
                      },
                      {
                        "fixed": "15.5.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:15.6:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "15.6-NA"
                      },
                      {
                        "last_affected": "15.6-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "62863736d78ffd60d822279c5fb7fb9593042766"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "15.6-NA",
            "xwiki-commons-15.6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-50721.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.313921492Z",
      "provider": "osv",
      "references": [
        "https://jira.xwiki.org/browse/XWIKI-21200",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50721.json",
        "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-7654-vfh6-rw6x",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-50721",
        "https://github.com/xwiki/xwiki-platform/commit/62863736d78ffd60d822279c5fb7fb9593042766"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94",
          "CWE-95"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50721.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-50721",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513426,
  "published_at": "2023-12-15T19:02:46.076+00:00"
}