CVE-2020-15171: Users with SCRIPT right can execute arbitrary code in XWiki
6.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.71846%
CWE
Published
9/10/2020
Updated
2/1/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.xwiki.platform:xwiki-platform-oldcore | maven | < 11.10.5 | 11.10.5 |
org.xwiki.platform:xwiki-platform-oldcore | maven | >= 12.0.0, < 12.2.1 | 12.2.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from exposing the ServletContext
to users with SCRIPT rights via the $request
binding. The XWikiServletRequestStub
class likely provides access to the ServletContext
through getServletContext()
, which would be dangerous if accessible in scripts. The XWikiScriptContextManager
's role in binding the request object to the scripting context makes it a key enabler of this exposure. These functions together allow attackers to reach Java reflection capabilities through the ServletContext
, aligning with the described injection and code execution vectors (CWE-74/CWE-94).