Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-31166

HIGH 8.1PoCEPSS 79%

XWiki.WebHome vulnerable to Improper Privilege Management in XWiki resolving groups

Also known as GHSA-g4h6-qp44-wqvx

Mitigation

  • Upgrade org.xwiki.platform:xwiki-platform-oldcore to one of 13.10.4, 14.2-rc-1 (or later in the same release line).

Who should check

  • Projects that depend on Maven package org.xwiki.platform:xwiki-platform-oldcore (>= 11.3.7, < 13.10.4)
  • Anyone running xwiki-platform >= 11.3.7, < 13.10.4; >= 14.0-rc-1, < 14.2-rc-1

Vulnerability facts

Affected
org.xwiki.platform:xwiki-platform-oldcore >= 11.3.7, < 13.10.4
Fixed in
13.10.4, 14.2-rc-1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, login needed
CVSS
8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
1.80% chance of exploitation in 30 days (percentile 79, 2026-11-26)
CWE
CWE-269
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Maven org.xwiki.platform:xwiki-platform-oldcore>= 11.3.7, < 13.10.413.10.4, 14.2-rc-1osv
xwiki-platform>= 11.3.7, < 13.10.4; >= 14.0-rc-1, < 14.2-rc-1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-31166. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-31166.md
Affected: org.xwiki.platform:xwiki-platform-oldcore >= 11.3.7, < 13.10.4
Fixed in: 13.10.4, 14.2-rc-1

Steps:
1. Search this machine and project for org.xwiki.platform:xwiki-platform-oldcore (Maven), xwiki-platform: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-31166 being exploited?

There is no confirmed exploitation: CVE-2022-31166 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.80% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-31166?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2022-31166?

org.xwiki.platform:xwiki-platform-oldcore >= 11.3.7, < 13.10.4.

Is there a fix for CVE-2022-31166?

Yes. Fixed in 13.10.4, 14.2-rc-1. Upgrade org.xwiki.platform:xwiki-platform-oldcore to one of 13.10.4, 14.2-rc-1 (or later in the same release line).

How do I check if I'm affected by CVE-2022-31166?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors