xwiki-platform: Incorrect Use of Privileged APIs
CVE-2022-24821 is a high-severity incorrect use of privileged apis vulnerability in xwiki-platform from XWiki, with a CVSS 3.1 base score of 8.1 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. Affected xwiki-platform versions: > 3.1M1. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.8% chance of exploitation within 30 days, higher than 57% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Xwiki to 12.10.11 or 13.4.6, whichever matches your release line, or a later version.
- Read the advisory on github.com for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| XWiki | xwiki-platform | > 3.1M1 | Not stated |
| XWiki | Xwiki | 12.0.0 up to, but not including, 12.10.11; 13.4.0 up to, but not including, 13.4.6; 13.10 | 12.10.11, 13.4.6 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 6.8 | Medium | CNA (github.com) |
| CVSS 3.1 | 8.1 | High | NVD |
| CVSS 2.0 | 5.5 | Medium | NVD |
Official description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Simple users can create global SSX/JSX without specific rights: in theory only users with Programming Rights should be allowed to create SSX or JSX that are executed everywhere on a wiki. But a bug allow anyone with edit rights to actually create those. This issue has been patched in XWiki 13.10-rc-1, 12.10.11 and 13.4.6. There's no easy workaround for this issue, administrators should upgrade their wiki.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Incorrect Use of Privileged APIs
The product does not conform to the API requirements for a function call that requires extra privileges. This could allow attackers to gain privileges by causing the function to be called incorrectly.
How developers prevent this class of flaw
- Before calling privileged APIs, always ensure that the assumptions made by the privileged code hold true prior to making the call.
- Know architecture and implementation weaknesses of the privileged APIs and make sure to account for these weaknesses before calling the privileged APIs to ensure that they can be called safely.
- If privileged APIs make certain assumptions about data, context or state validity that are passed by the caller, the calling code must ensure that these assumptions have been validated prior to making the call.
More Incorrect Use of Privileged APIs vulnerabilities (CWE-648)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: poc, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-ghcq-472w-vf4hThird Party Advisory
Patches and release notes
- jira.xwiki.org/browse/XWIKI-19155Exploit, Issue Tracking, Third Party Advisory
Other vulnerabilities in xwiki-platform
- 7.1 High severity
- 8.2 High severity
- 7.5 High severity
- 9.3 Critical severity
- 8.6 High severity
- 7.5 High severity
Recent Incorrect Use of Privileged APIs vulnerabilities
- 7.1 High severity
Spotted an error? Tell us.