Skip to content

CVE-2023-40573 XWiki Platform's Groovy jobs check the wrong author, allowing remote code execution

HighCVSS 8.8 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

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.

Upgrade path

4 packages: 3 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
com.xpn.xwiki.platform.plugins/xwiki-plugin-scheduler(Maven) >= 1.3 No fix listed No fix yet
org.xwiki.platform/xwiki-platform-scheduler-api(Maven) < 14.10.9; >= 15.0-rc-1, < 15.4-rc-1 14.10.9, 15.4-rc-1 Fixed
xwiki < 14.10.9; = 15.0; = 15.0-rc1; = 15.1 +5 more 14.10.9 Fixed
xwiki-platform = < 14.10.9; = >= 1.3; = >= 15.0-rc-1, < 15.4-rc-1; >= 1.3, < 14.10.9 +1 more 14.10.9, 15.4-rc-1 Fixed

Affected products

ProductAffected versionsFixed in
org.xwiki.platform/xwiki-platform-scheduler-api(Maven) < 14.10.9 14.10.9
com.xpn.xwiki.platform.plugins/xwiki-plugin-scheduler(Maven) >= 1.3 No fix listed
org.xwiki.platform/xwiki-platform-scheduler-api(Maven) >= 15.0-rc-1, < 15.4-rc-1 15.4-rc-1
xwiki-platform = < 14.10.9 No fix listed
xwiki-platform = >= 1.3 No fix listed
xwiki-platform = >= 15.0-rc-1, < 15.4-rc-1 No fix listed
xwiki-platform >= 1.3, < 14.10.9 14.10.9
xwiki-platform >= 15.0-rc-1, < 15.4-rc-1 15.4-rc-1
xwiki < 14.10.9 14.10.9
xwiki = 15.0 No fix listed
xwiki = 15.0-rc1 No fix listed
xwiki = 15.1 No fix listed
xwiki = 15.1-rc1 No fix listed
xwiki = 15.2 No fix listed
xwiki = 15.2-rc1 No fix listed
xwiki = 15.3 No fix listed
xwiki = 15.3-rc1 No fix listed

References