PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-15252: 
Java vulnerability analysis and mitigation

Overview

In XWiki versions before 12.5 and 11.10.6, a critical security vulnerability was identified where users with SCRIPT right (EDIT right before XWiki 7.4) could gain unauthorized access to the application server Servlet context. This vulnerability, tracked as CVE-2020-15252, was discovered by GitHub Security Lab team member @pwntester (Alvaro Munoz) and was disclosed in October 2020 (GitHub Advisory).

Technical details

The vulnerability stems from improper access control to the Servlet Context through $xcontext.request and $context.request binding. Through deep inspection of exposed objects' object graph, attackers could access the Servlet Context via $request.getServletContext(). This access allowed attackers to obtain an Instance Manager, which could be used to instantiate arbitrary Java objects and invoke methods, effectively bypassing the sandbox. For example, attackers could use the Tomcat InstanceManager to create a ScriptEngineManager and execute arbitrary code (GitHub Advisory).

Impact

The vulnerability could lead to Remote Code Execution (RCE), allowing attackers to execute arbitrary Java code or run system commands with the same privileges as the account running XWiki. This posed a significant security risk as it could result in complete system compromise (GitHub Advisory).

Exploitability

The vulnerability required an attacker to have SCRIPT right (or EDIT right in versions before XWiki 7.4) to exploit. Once these permissions were obtained, the attacker could access the Servlet Context and use it to instantiate arbitrary Java objects, leading to code execution (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in XWiki versions 12.5 and 11.10.6. Before applying the patch, the only available workaround was to give SCRIPT right only to trusted users. The fix involved limiting the objects that are available through the Templating API, particularly restricting access to Servlet Context attributes (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-111765HIGH7.5
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-http-client-android
NoYesOct 20, 2026
CVE-2026-102834HIGH7.5
  • Java logoJava
  • org.bytedeco:javacv
NoYesOct 16, 2026
CVE-2026-111763MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-parent
NoYesOct 20, 2026
CVE-2026-111762MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-transport-rest
NoYesOct 20, 2026
CVE-2026-113730MEDIUM5.6
  • Java logoJava
  • ognl:ognl
NoYesOct 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