Vulnerability record · CVE-2023-29516 · published 19 April 2023
CVE-2023-29516: XWiki Platform AttachmentSelector code injection via unescaped button
Xwiki · Xwiki
XWiki Platform fails to properly escape the "Cancel and return to page" button on the default-installed XWiki.AttachmentSelector page, allowing injection of Groovy, Python or Velocity code. Any user with view rights on that page can trigger server-side code execution, giving full access to the XWiki installation.
Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any user with view rights on `XWiki.AttachmentSelector` can execute arbitrary Groovy, Python or Velocity code in XWiki leading to full access to the XWiki installation. The root cause is improper escaping in the "Cancel and return to page" button. This page is installed by default. This vulnerability has been patched in XWiki 15.0-rc-1, 14.10.1, 14.4.8, and 13.10.11. There are no known workarounds for this vulnerability.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Automated analysis
high priorityCVSS 8.8 with low privileges and no user interaction, plus very high EPSS and public exploit references, make this a high-priority patch target.
What it is
XWiki Platform fails to properly escape the "Cancel and return to page" button on the default-installed XWiki.AttachmentSelector page, allowing injection of Groovy, Python or Velocity code. Any user with view rights on that page can trigger server-side code execution, giving full access to the XWiki installation.
Impact
An attacker gains arbitrary server-side code execution in the XWiki context, leading to full compromise of the installation including data, configuration and potentially the host.
Attack surface
Reached over the network through the XWiki.AttachmentSelector page; the CVSS vector indicates low privileges are required (PR:L) and no user interaction (UI:N), so any authenticated user with view rights on that page can exploit it.
Exploitation
Not listed in CISA KEV, but EPSS is 0.65869 (99.2nd percentile) and vendor references are tagged Exploit, indicating public exploit material exists.
What to do
- Upgrade to XWiki 15.0-rc-1, 14.10.1, 14.4.8 or 13.10.11, which contain the patch.
- If immediate upgrade is not possible, restrict view rights on XWiki.AttachmentSelector to trusted users only.
- Review and remove any unexpected modifications to the XWiki.AttachmentSelector page.
- Monitor XWiki logs for Groovy, Python or Velocity execution errors originating from wiki pages.
Detection
- Audit access logs for requests to XWiki.AttachmentSelector from non-administrative accounts.
- Inspect the XWiki.AttachmentSelector page content for injected script blocks or unexpected code.
- Alert on server-side errors or stack traces referencing Groovy, Python or Velocity evaluation from wiki pages.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/xwiki/xwiki-platform/commit/aca1d677c58563bbe6e35c9e1c29fd8b12ebb996 | Patch |
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-3989-4c6x-725f | ExploitPatchVendor Advisory |
| https://jira.xwiki.org/browse/XWIKI-20275 | ExploitIssue TrackingPatchVendor Advisory |
| https://github.com/xwiki/xwiki-platform/commit/aca1d677c58563bbe6e35c9e1c29fd8b12ebb996 | Patch |
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-3989-4c6x-725f | ExploitPatchVendor Advisory |
| https://jira.xwiki.org/browse/XWIKI-20275 | ExploitIssue TrackingPatchVendor Advisory |
Track CVE-2023-29516 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2023-29516), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.