Skip to content
Heist/ feed
Back to feed
High

Remote code execution in xwiki-platform

Type: advisorySources: OSV

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions it's possible for an unprivileged user to perform a remote code execution by injecting a groovy script in her own profile and by calling the Reset password feature since the feature is performing a save of the user profile with programming rights in the impacted versions of XWiki. The issue has been patched in XWiki 13.1RC1. There are two different possible workarounds, each consisting of modifying the XWiki/ResetPassword page. 1. The Reset password feature can be entirely disabled by deleting the XWiki/ResetPassword page. 2. The script in XWiki/ResetPassword can also be modified or removed: an administrator can replace it with a simple email contact to ask an administrator to reset the password.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-23616
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 14:23 UTC · Revision 1

Source evidence

Remote code execution in xwiki-platform

core-osv · Original source

Published 9 Feb 2022, 20:55 UTC

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions it's possible for an unprivileged user to perform a remote code execution by injecting a groovy script in her own profile and by calling the Reset password feature since the feature is performing a save of the user profile with programming rights in the impacted versions of XWiki. The issue has been patched in XWiki 13.1RC1. There are two different possible workarounds, each consisting of modifying the XWiki/ResetPassword page. 1. The Reset password feature can be entirely disabled by deleting the XWiki/ResetPassword page. 2. The script in XWiki/ResetPassword can also be modified or removed: an administrator can replace it with a simple email contact to ask an administrator to reset the password.

osv:CVE-2022-23616
Complete source record
{
  "id": "c004522a1c830b87e4a9286996a6f8d291ba7278965aa6e2fdd1e039a7751a2a",
  "url": "https://osv.dev/vulnerability/CVE-2022-23616",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Remote code execution in xwiki-platform",
    "summary": "XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions it's possible for an unprivileged user to perform a remote code execution by injecting a groovy script in her own profile and by calling the Reset password feature since the feature is performing a save of the user profile with programming rights in the impacted versions of XWiki. The issue has been patched in XWiki 13.1RC1. There are two different possible workarounds, each consisting of modifying the XWiki/ResetPassword page. 1. The Reset password feature can be entirely disabled by deleting the XWiki/ResetPassword page. 2. The script in XWiki/ResetPassword can also be modified or removed: an administrator can replace it with a simple email contact to ask an administrator to reset the password.",
    "evidence": "osv:CVE-2022-23616",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-23616",
      "aliases": [
        "CVE-2022-23616",
        "GHSA-mgjw-2wrp-r535"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-commons",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c62740b018828e1dec52107f480f4cda14776528"
                },
                {
                  "last_affected": "1d2a35bb2773fe8b68f16a65c440beb65b3a49bf"
                },
                {
                  "last_affected": "c62740b018828e1dec52107f480f4cda14776528"
                },
                {
                  "introduced": "edf0681ba6e4217c4de89c2473aaf2eb94e1a761"
                },
                {
                  "last_affected": "edf0681ba6e4217c4de89c2473aaf2eb94e1a761"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1.1"
                      },
                      {
                        "last_affected": "13.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:3.1:milestone1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1-milestone1"
                      },
                      {
                        "last_affected": "3.1-milestone1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:3.1:milestone2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1-milestone2"
                      },
                      {
                        "last_affected": "3.1-milestone2"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.1-milestone2",
            "xwiki-commons-3.1.1",
            "xwiki-commons-3.1-milestone-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23616.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-platform",
              "type": "GIT",
              "events": [
                {
                  "introduced": "cf0f4b3c7bd3485b33392dcd986e39f457356de6"
                },
                {
                  "last_affected": "5e8b9d45b1a37ab1db65cd54e915960db993c6f2"
                },
                {
                  "last_affected": "cf0f4b3c7bd3485b33392dcd986e39f457356de6"
                },
                {
                  "introduced": "e3711f86d6b2fd5975244f6c3dbcf9bd56d19519"
                },
                {
                  "last_affected": "e3711f86d6b2fd5975244f6c3dbcf9bd56d19519"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1.1"
                      },
                      {
                        "last_affected": "13.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:3.1:milestone1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1-milestone1"
                      },
                      {
                        "last_affected": "3.1-milestone1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:3.1:milestone2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1-milestone2"
                      },
                      {
                        "last_affected": "3.1-milestone2"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.1-milestone2",
            "xwiki-platform-3.1.1",
            "xwiki-platform-3.1-milestone-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23616.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.358627030Z",
      "provider": "osv",
      "references": [
        "https://jira.xwiki.org/browse/XWIKI-16661",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23616.json",
        "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mgjw-2wrp-r535",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-23616"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-74"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.1M1"
                  },
                  {
                    "fixed": "13.1RC1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23616.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-23616",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496344,
  "published_at": "2022-02-09T20:55:10+00:00"
}