CVE-2022-23621
Java vulnerability analysis and mitigation

Overview

XWiki Platform, a generic wiki platform offering runtime services, was found to contain a vulnerability (CVE-2022-23621) where any user with SCRIPT right could read any file located in the XWiki WAR through XWiki#invokeServletAndReturnAsString function. The vulnerability was discovered in July 2021 and patched in versions 12.10.9, 13.4.3, and 13.7-rc-1 (GitHub Advisory).

Technical details

The vulnerability allows users with SCRIPT right to access sensitive files within the XWiki WAR file by using the XWiki#invokeServletAndReturnAsString function. For example, an attacker could read sensitive configuration files like xwiki.cfg and xwiki.properties using the command $xwiki.invokeServletAndReturnAsString("/WEB-INF/xwiki.cfg"). The vulnerability has been assigned a CVSS v3.1 base score of 6.0 (Moderate) with the vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H (GitHub Advisory).

Impact

The vulnerability allows unauthorized access to sensitive configuration files within the XWiki WAR file, potentially exposing critical system information such as superadmin passwords and other configuration details. This could lead to further system compromise and unauthorized access to protected resources (Jira Issue).

Exploitability

The vulnerability can be exploited by any user with SCRIPT right (or EDIT right before XWiki 7.4) by using the XWiki#invokeServletAndReturnAsString function to read files from the WAR directory. The attack requires network access and low complexity to execute (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in XWiki versions 12.10.9, 13.4.3, and 13.7-rc-1. Users are strongly advised to upgrade to these versions or later. As a temporary workaround, administrators should limit SCRIPT rights to only trusted users (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61827HIGH8.7
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-bhttp
NoYesAug 20, 2026
CVE-2026-61798HIGH8.1
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-ohttp-hpke-classes-boringssl
NoYesAug 20, 2026
CVE-2026-63202HIGH7.5
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-bhttp
NoYesAug 20, 2026
CVE-2026-63124HIGH7.5
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-bhttp
NoYesAug 20, 2026
CVE-2026-61799MEDIUM5.3
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-bhttp
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management