CVE-2022-31166 json
XWiki.WebHome vulnerable to Improper Privilege Management in XWiki resolving groups
published 2022-09-07 4 y ago modified 2026-06-17 4 mo ago also GHSA-g4h6-qp44-wqvx , EUVD-2022-6817
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.xwiki.platform:xwiki-platform-oldcore 13.10.4, 14.2-rc-1
- xwiki xwiki 13.10.4, 14.2
- github.com/xwiki/xwiki-platform#1800 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.48% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- jira.xwiki.org https://jira.xwiki.org/browse/XWIKI-18386 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.xwiki.platform:xwiki-platform-oldcore | >=11.3.7, <13.10.4 >=14.0-rc-1, <14.2-rc-1 |
13.10.4 14.2-rc-1 |
Affected products
- xwiki xwiki-platform
Classification
- Weakness
-
- CWE-269 Improper Privilege Management
References
-
github.com
/xwiki/xwiki-platform/pull/1800
web, patch, third-party-advisory
-
jira.xwiki.org
/browse/XWIKI-18386
web, exploit, permissions-required, vendor-advisory
-
jira.xwiki.org
/browse/XWIKI-15776
web, vendor-advisory
-
github.com
/xwiki/xwiki-platform/security/advisories/GHSA-g4h6-qp44-wqvx
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31166
advisory
-
github.com
/xwiki/xwiki-platform
package
Sources
- CVE List CVE-2022-31166
- GitHub Advisory GHSA-g4h6-qp44-wqvx
- NVD CVE-2022-31166
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.