6.6medium
Users with SCRIPT rights can execute arbitrary code in XWiki
- Severity
- 6.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.34% (higher than 72% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7qw5-pqhc-xm4g
Description
In XWiki before versions 11.10.5 or 12.2.1, any user with SCRIPT right (EDIT right before XWiki 7.4) can gain access to the application server Servlet context which contains tools allowing to instantiate arbitrary Java objects and invoke methods that may lead to arbitrary code execution. The only workaround is to give SCRIPT right only to trusted users.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xwiki xwiki-platform | <11.10.5, >=12.0.0, <12.2.1 | CVE List |
| org.xwiki.platform:xwiki-platform-oldcore (Maven) | before 11.10.5, from 12.0.0 before 12.2.1 | GitHub Advisory Database |
| xwiki xwiki | before 11.10.5, from 12.0.0 before 12.2.1 | NVD |
All scores
| GitHub_M | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 6.6low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.0medium CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
In XWiki before versions 11.10.5 or 12.2.1, any user with SCRIPT right (EDIT right before XWiki 7.4) can gain access to the application server Servlet context which contains tools allowing to instantiate arbitrary Java objects and invoke methods that may lead to arbitrary code execution. The only workaround is to give SCRIPT right only to trusted users.
GitHub Advisory Database
Impact
Any user with SCRIPT right (EDIT right before XWiki 7.4) can gain access to the application server Servlet context which contains tools allowing to instantiate arbitrary Java objects and invoke methods that may lead to arbitrary code execution.
Patches
It has been patched in both version XWiki 12.2.1 and XWiki 11.10.5.
Workarounds
The only workaround is to give SCRIPT right only to trusted users.
References
https://jira.xwiki.org/browse/XWIKI-17141 https://jira.xwiki.org/browse/XWIKI-17266
It's been reported by the GitHub Security Lab under #GHSL-2020-046.
For more information
If you have any questions or comments about this advisory:
- Open an issue in Jira XWiki
- Email us at our security mailing list
NVD (es)
En XWiki versiones anteriores a 11.10.5 o 12.2.1, cualquier usuario con derecho de SCRIPT (derecho EDIT anterior a XWiki 7.4), puede obtener acceso al contexto del Servlet del servidor de aplicaciones, que contiene herramientas que permiten crear instancias de objetos Java arbitrarios e invocar métodos que pueden conducir a una ejecución de código. La única solución alternativa es otorgar el derecho de SCRIPT solo a los usuarios de confianza
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15171 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7qw5-pqhc-xm4g changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-15171 changed 2026-06-17 | Public domain |