{"id":"CVE-2020-15171","aliases":["CVE-2020-15171","GHSA-7qw5-pqhc-xm4g"],"related":[],"kind":"vulnerability","state":"published","title":"Users with SCRIPT rights can execute arbitrary code in XWiki","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAny 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.\n\n### Patches\n\nIt has been patched in both version XWiki 12.2.1 and XWiki 11.10.5.\n\n### Workarounds\n\nThe only workaround is to give SCRIPT right only to trusted users.\n\n### References\n\nhttps://jira.xwiki.org/browse/XWIKI-17141\nhttps://jira.xwiki.org/browse/XWIKI-17266\n\nIt's been reported by the GitHub Security Lab under #GHSL-2020-046.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki](https://jira.xwiki.org)\n* Email us at [our security mailing list](mailto:security@xwiki.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2020-09-10T19:19:27.000Z","modified":"2026-07-08T06:00:14.852Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","score":6,"rating":"MEDIUM"}],"cwes":["CWE-74","CWE-94"],"affected":[{"ranges":[{"version":"<11.10.5","status":"affected"},{"version":">=12.0.0, <12.2.1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"11.10.5"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.0.0","status":"affected","fixed":"12.2.1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-oldcore","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"11.10.5"},{"status":"affected","introduced":"12.0.0","fixed":"12.2.1"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-7qw5-pqhc-xm4g","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15171","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15171","url":"https://www.cve.org/CVERecord?id=CVE-2020-15171","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:22.465Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7qw5-pqhc-xm4g","url":"https://github.com/advisories/GHSA-7qw5-pqhc-xm4g","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:14.852Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15171","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15171","licence":"Public domain","modified":"2026-06-17T02:56:11.530Z"}],"updatedAt":"2026-11-25T22:57:54.601Z","epss":{"score":0.01341,"percentile":0.72147,"date":"2026-12-01T12:00:22.000Z"}}