CVE-2023-40573 json
XWiki Platform's Groovy jobs check the wrong author, allowing remote code execution
published 3y ago modified 4mo ago also GHSA-8xhr-x3v8-rghj , EUVD-2023-2250
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 65%
- public exploits
- 0
- none known
Summary
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki supports scheduled jobs that contain Groovy scripts. Currently, the job checks the content author of the job for programming right. However, modifying or adding a job script to a document doesn't modify the content author. Together with a CSRF vulnerability in the job scheduler, this can be exploited for remote code execution by an attacker with edit right on the wiki. If the attack is successful, an error log entry with "Job content executed" will be produced. This vulnerability has been patched in XWiki 14.10.9 and 15.4RC1.
Patch / fix
- maven org.xwiki.platform:xwiki-platform-scheduler-api 14.10.9, 15.4-rc-1
- xwiki xwiki-platform 14.10.9, 15.4-rc-1
Is CVE-2023-40573 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
1.08% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-15).
Exploits and checks
- jira.xwiki.org https://jira.xwiki.org/browse/XWIKI-20852 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| 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 | 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.xwiki.platform:xwiki-platform-scheduler-api | <14.10.9 >=15.0-rc-1, <15.4-rc-1 |
14.10.9 15.4-rc-1 |
| maven | com.xpn.xwiki.platform.plugins:xwiki-plugin-scheduler | >=1.3 |
no fix listed |
Affected products
- xwiki xwiki-platform
Classification
- Weakness
-
- CWE-284 Improper Access Control
References
-
github.com
/xwiki/xwiki-platform/commit/fcdcfed3fe2e8a3cad66ae0610795a2d58ab9662
web, patch
-
github.com
/xwiki/xwiki-platform/security/advisories/GHSA-8xhr-x3v8-rghj
web, patch, vendor-advisory
-
jira.xwiki.org
/browse/XWIKI-20852
web, exploit, issue-tracking, patch, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-40573
advisory
-
github.com
/xwiki/xwiki-platform
package
Sources
- CVE List CVE-2023-40573
- GitHub Advisory GHSA-8xhr-x3v8-rghj
- NVD CVE-2023-40573
Fencer Intel 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.