8.1high
XWiki.WebHome vulnerable to Improper Privilege Management in XWiki resolving groups
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.53% (higher than 75% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-g4h6-qp44-wqvx
Description
XWiki Platform Old Core is a core package for XWiki Platform, a generic wiki platform. Starting in versions 11.3.7, 11.0.3, and 12.0RC1, it is possible to exploit a bug in XWikiRights resolution of groups to obtain privilege escalation. More specifically, editing a right with the object editor leads to adding a supplementary empty value to groups which is then resolved as a reference to XWiki.WebHome page. Adding an XWikiGroup xobject to that page then transforms it to a group, any user put in that group would then obtain the privileges related to the edited right. Note that this security issue is normally mitigated by the fact that XWiki.WebHome (and XWiki space in general) should be protected by default for edit rights. The problem has been patched in XWiki 13.10.4 and 14.2RC1 to not consider anymore empty values in XWikiRights. It's possible to work around the problem by setting appropriate rights on XWiki.WebHome page to prevent users to edit it.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xwiki xwiki-platform | >= 11.3.7, < 13.10.4, >= 14.0-rc-1, < 14.2-rc-1 | CVE List |
| org.xwiki.platform:xwiki-platform-oldcore (Maven) | from 11.3.7 before 13.10.4, from 14.0-rc-1 before 14.2-rc-1 | GitHub Advisory Database |
| xwiki xwiki | from 11.3.7 before 13.10.4, from 14.0 before 14.2 | NVD |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
XWiki Platform Old Core is a core package for XWiki Platform, a generic wiki platform. Starting in versions 11.3.7, 11.0.3, and 12.0RC1, it is possible to exploit a bug in XWikiRights resolution of groups to obtain privilege escalation. More specifically, editing a right with the object editor leads to adding a supplementary empty value to groups which is then resolved as a reference to XWiki.WebHome page. Adding an XWikiGroup xobject to that page then transforms it to a group, any user put in that group would then obtain the privileges related to the edited right. Note that this security issue is normally mitigated by the fact that XWiki.WebHome (and XWiki space in general) should be protected by default for edit rights. The problem has been patched in XWiki 13.10.4 and 14.2RC1 to not consider anymore empty values in XWikiRights. It's possible to work around the problem by setting appropriate rights on XWiki.WebHome page to prevent users to edit it.
GitHub Advisory Database
Impact
It's possible to exploit a bug in XWikiRights resolution of groups to obtain privilege escalation.
More specifically, editing a right with the object editor leads to adding a supplementary empty value to groups which is then resolved as a reference to XWiki.WebHome page. Adding an XWikiGroup xobject to that page then transforms it to a group, any user put in that group would then obtain the privileges related to the edited right.
Note that this security issue is normally mitigated by the fact that XWiki.WebHome (and XWiki space in general) should be protected by default for edit rights.
Patches
The problem has been patched in XWiki 13.10.4 and 14.2RC1 to not consider anymore empty values in XWikiRights.
Workarounds
It's possible to workaround the problem by setting appropriate rights on XWiki.WebHome page to prevent users to edit it.
References
For more information
If you have any questions or comments about this advisory:
- Open an issue in Jira XWiki.org
- Email us at Security Mailing List
NVD (es)
XWiki Platform Old Core es un paquete central para XWiki Platform, una plataforma wiki genérica. A partir de las versiones 11.3.7, 11.0.3 y 12.0RC1, es posible explotar un error en la resolución de grupos de XWikiRights para obtener una escalada de privilegios. Más específicamente, la edición de un derecho con el editor de objetos conlleva a una adición de un valor vacío suplementario a los grupos que luego es resuelto como una referencia a la página XWiki.WebHome. Añadiendo un XWikiGroup xobject a esa página entonces es transformada en un grupo, cualquier usuario puesto en ese grupo obtendría entonces los privilegios relacionados con el derecho editado. Ten en cuenta que este problema de seguridad es mitigado normalmente por el hecho de que XWiki.WebHome (y el espacio XWiki en general) debería estar protegido por defecto para los derechos de edición. El problema ha sido parcheado en XWiki versiones 13.10.4 y 14.2RC1 para no considerar más valores vacíos en XWikiRights. Es posible mitigar el problema al establecer los derechos apropiados en la página XWiki.WebHome para evitar que los usuarios la editen
References
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g4h6-qp44-wqvx | third-party-advisory, web | |
| https://github.com/xwiki/xwiki-platform/pull/1800 | patch, third-party-advisory, web | |
| https://jira.xwiki.org/browse/XWIKI-15776 | vendor-advisory, web | |
| https://jira.xwiki.org/browse/XWIKI-18386 | exploit, permissions-required, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-31166 | advisory | |
| https://github.com/xwiki/xwiki-platform | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31166 changed 2025-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g4h6-qp44-wqvx changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-31166 changed 2026-06-17 | Public domain |