CVE-2023-46731
Published: 06 November 2023
Summary
CVE-2023-46731 is a critical-severity Code Injection (CWE-94) vulnerability in Xwiki Xwiki. Its CVSS base score is 10.0 (Critical).
Operationally, ranked in the top 1.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
XWiki Platform, a generic wiki platform, contains an improper neutralization vulnerability in the code responsible for rendering administration sections. The section URL parameter passed to the XWiki.AdminSheet document is not escaped, enabling injection of arbitrary code including Groovy scripts. The flaw affects all versions prior to the listed patches and carries a CVSS score of 10.0 under CWE-94 and CWE-95.
Any user with read access to XWiki.AdminSheet, which is granted to everyone including unauthenticated guests by default, can supply a malicious section parameter and execute code on the server. Successful exploitation grants full control over the confidentiality, integrity, and availability of the entire XWiki instance.
The GitHub Security Advisory and XWiki Jira entry state that the issue is resolved in releases 14.10.14, 15.5.1, and 15.6 RC1. Administrators unable to upgrade can apply the change from commit fec8e0e53f9 manually or, as a temporary measure against unauthenticated attackers, revoke view rights on the document for guest users while retaining them for space and wiki administrators.
The associated EPSS score reached 0.5746 without a material rise after disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-2893
Vulnerability details
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki doesn't properly escape the section URL parameter that is used in the code for displaying administration sections. This allows any user with…
more
read access to the document `XWiki.AdminSheet` (by default, everyone including unauthenticated users) to execute code including Groovy code. This impacts the confidentiality, integrity and availability of the whole XWiki instance. This vulnerability has been patched in XWiki 14.10.14, 15.6 RC1 and 15.5.1. Users are advised to upgrade. Users unablr to upgrade may apply the fix in commit `fec8e0e53f9` manually. Alternatively, to protect against attacks from unauthenticated users, view right for guests can be removed from this document (it is only needed for space and wiki admins).
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.
Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.
Validates inputs used in dynamic code generation to block injected directives.
Directly prevents execution of attacker-supplied code written into data memory regions.