# CVE-2022-23616: Remote code execution in xwiki-platform

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.10%, higher than 82% of CVEs (2026-12-01)
- Published: 2022-02-09T20:55:10.000Z
- Modified: 2026-06-17T04:30:29.437Z
- Also known as: GHSA-mgjw-2wrp-r535
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: > 3.1M1, < 13.1RC1
- org.xwiki.platform:xwiki-platform-administration-ui (Maven): from 3.1-milestone-1 before 13.1RC1
- xwiki xwiki: from 3.1.1 up to 13.1; 3.1

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mgjw-2wrp-r535> (third-party-advisory, web)
- <https://jira.xwiki.org/browse/XWIKI-16661> (patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23616> (advisory)
- <https://github.com/xwiki/xwiki-platform/commit/407caeba05c181bd4835e1dd12e431fa15ff728b#diff-c51a3675b6e312a9385a27566bfb4e5cL340> (web)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2022-23616](https://www.cve.org/CVERecord?id=CVE-2022-23616), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-mgjw-2wrp-r535](https://github.com/advisories/GHSA-mgjw-2wrp-r535), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-23616](https://nvd.nist.gov/vuln/detail/CVE-2022-23616), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23616 · Whole record: https://cve.day/CVE-2022-23616.json · Rebuilt by cve.day 2026-11-25T22:58:09.591Z
