CVE-2020-15171
JSON

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 packageVersionsReported by
xwiki xwiki-platform<11.10.5, >=12.0.0, <12.2.1CVE List
org.xwiki.platform:xwiki-platform-oldcore (Maven)before 11.10.5, from 12.0.0 before 12.2.1GitHub Advisory Database
xwiki xwikibefore 11.10.5, from 12.0.0 before 12.2.1NVD

All scores

GitHub_M6.6medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
GitHub6.6low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD6.6medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV: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:

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.&#xa0;La única solución alternativa es otorgar el derecho de SCRIPT solo a los usuarios de confianza

References

Sources

SourceRecordLicence
CVE ListCVE-2020-15171 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-7qw5-pqhc-xm4g changed 2026-07-08CC-BY-4.0
NVDCVE-2020-15171 changed 2026-06-17Public domain