# CVE-2022-31166: XWiki.WebHome vulnerable to Improper Privilege Management in XWiki resolving groups

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.53%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-07T14:10:12.000Z
- Modified: 2026-06-17T04:44:56.757Z
- Also known as: GHSA-g4h6-qp44-wqvx
- Weaknesses: CWE-269
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 11.3.7, < 13.10.4; >= 14.0-rc-1, < 14.2-rc-1
- 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
- xwiki xwiki: from 11.3.7 before 13.10.4; from 14.0 before 14.2

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://jira.xwiki.org/browse/XWIKI-18386> (exploit, permissions-required, vendor-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2022-31166> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2022-31166](https://www.cve.org/CVERecord?id=CVE-2022-31166), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-g4h6-qp44-wqvx](https://github.com/advisories/GHSA-g4h6-qp44-wqvx), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31166](https://nvd.nist.gov/vuln/detail/CVE-2022-31166), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31166 · Whole record: https://cve.day/CVE-2022-31166.json · Rebuilt by cve.day 2026-11-25T22:58:14.747Z
