CVE-2022-31166
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. High risk of data exposure, data tampering.
- Exploit odds
- 1.5% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.5% in the next 30 days (EPSS).
- Severity: 8.1 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.5% · EPSS, next 30 days
- Weakness
- CWE-269 · Improper privilege management
- Record status
- Modified
Affected
- Xwiki < 13.10.4
- Xwiki < 14.2
Attack profile CVSS 3.1 · 8.1
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2022-31166.md and follow it. Check whether this project is affected by CVE-2022-31166. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/xwiki/xwiki-platform/pull/1800
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g4h6-qp44-wqvx
- https://jira.xwiki.org/browse/XWIKI-15776
- https://jira.xwiki.org/browse/XWIKI-18386
- https://github.com/xwiki/xwiki-platform/pull/1800
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g4h6-qp44-wqvx
- https://jira.xwiki.org/browse/XWIKI-15776
- https://jira.xwiki.org/browse/XWIKI-18386
References
- https://github.com/xwiki/xwiki-platform/pull/1800
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g4h6-qp44-wqvx
- https://jira.xwiki.org/browse/XWIKI-15776
- https://jira.xwiki.org/browse/XWIKI-18386
- https://github.com/xwiki/xwiki-platform/pull/1800
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g4h6-qp44-wqvx
- https://jira.xwiki.org/browse/XWIKI-15776
- https://jira.xwiki.org/browse/XWIKI-18386