BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2022-31166 in Xwiki

High 8.8

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
EPSS1.8%
EPSS percentile79th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Xwiki Xwiki ≥ 11.3.7, < 13.10.4 ≥ 14.0, < 14.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-31166
BreachSpider IDBS-2022-GLOBAL-319243-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2022-09-07
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-269: Improper Privilege Management

Software does not properly assign, modify, track, or check privileges, allowing unauthorized elevation of access.

Related attack patterns (CAPEC)

CAPEC-58 Restful Privilege Elevation via CWE-269

CAPEC-122 Privilege Abuse via CWE-269

CAPEC-233 Privilege Escalation via CWE-269

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A privilege escalation vulnerability exists in XWiki Platform Old Core due to a bug in XWikiRights resolution of groups, allowing attackers to gain unauthorized access by editing rights with the object editor.

An attacker can exploit this vulnerability by editing a right with the object editor, which adds a supplementary empty value to groups. This empty value is then resolved as a reference to XWiki.WebH, granting the attacker elevated privileges.

Questions

What is CVE-2022-31166?

A privilege escalation vulnerability exists in XWiki Platform Old Core due to a bug in XWikiRights resolution of groups, allowing attackers to gain unauthorized access by editing rights with the object editor.

What is the CVSS score for CVE-2022-31166?

CVE-2022-31166 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.8%.

Is CVE-2022-31166 actively exploited?

No confirmed active exploitation of CVE-2022-31166 as of 2026-09-25.

How do I remediate CVE-2022-31166?

Priority: IMMEDIATE. Advisory: https://jira.xwiki.org/browse/XWIKI-15776 PSIRT: [email protected]

What systems are affected by CVE-2022-31166?

CVE-2022-31166 affects Xwiki Xwiki.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Xwiki","product":"Xwiki","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.