{"id":"CVE-2023-40573","aliases":["CVE-2023-40573","GHSA-8xhr-x3v8-rghj"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki Platform's Groovy jobs check the wrong author, allowing remote code execution","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nXWiki 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.\n\nFor successful exploitation, the needs to have edit right on a document whose content has last been changed by a user with programming right. This could be the user profile for users created by admins. In this document, the attacker can create an object of class `XWiki.SchedulerJobClass` using the object editor. By setting job class to `com.xpn.xwiki.plugin.scheduler.GroovyJob`, cron expression to `0 0/5 * * * ?` and job script to `services.logging.getLogger(\"foo\").error(\"Job content executed\")`, the attacker can create a job. Now this job just needs to be triggered or scheduled. This can be achieved by embedding an image with the following XWiki syntax in any document that is visited by an admin: `[[image:path:/xwiki/bin/view/Scheduler/?do=trigger&which=Attacker.Document]]` where `Attacker.Document` is the document that has been prepared by the attacker. If the attack is successful, an error log entry with \"Job content executed\" will be produced.\n\n### Patches\nThis vulnerability has been patched in XWiki 14.10.9 and 15.4RC1.\n\n### Workarounds\nThere is no workaround.\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-20852\n* https://github.com/xwiki/xwiki-platform/commit/fcdcfed3fe2e8a3cad66ae0610795a2d58ab9662","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Platform es una plataforma wiki genérica que ofrece servicios en tiempo de ejecución para aplicaciones construidas sobre ella. XWiki soporta trabajos programados que contienen scripts Groovy. Actualmente, el trabajo comprueba si el autor del contenido del trabajo tiene derechos de programación. Sin embargo, modificar o añadir un script de trabajo a un documento no modifica el autor del contenido. Junto con una vulnerabilidad CSRF en el programador de trabajos, esto puede ser explotado para la ejecución remota de código por un atacante con derecho de edición en la wiki. Si el ataque tiene éxito, se producirá una entrada en el registro de errores con el mensaje \"Job content executed\". Esta vulnerabilidad ha sido parcheada en XWiki 14.10.9 y 15.4RC1.","source":"nvd"}],"published":"2023-08-23T20:41:30.000Z","modified":"2026-06-17T06:18:31.613Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"version":"< 14.10.9","status":"affected"},{"version":">= 1.3","status":"affected"},{"version":">= 15.0-rc-1, < 15.4-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"1.3","fixed":"14.10.9","status":"affected"},{"type":"custom","introduced":"15.0-rc-1","fixed":"15.4-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","cpe":"cpe:2.3:a:xwiki:xwiki-platform:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"14.10.9"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-scheduler-api","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-scheduler-api","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.3","status":"affected"}],"ecosystem":"Maven","package":"com.xpn.xwiki.platform.plugins:xwiki-plugin-scheduler","purl":"pkg:maven/com.xpn.xwiki.platform.plugins/xwiki-plugin-scheduler","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.0-rc-1","status":"affected","fixed":"15.4-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-scheduler-api","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-scheduler-api","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"14.10.9"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.1"},{"status":"affected","version":"15.1"},{"status":"affected","version":"15.2"},{"status":"affected","version":"15.2"},{"status":"affected","version":"15.3"},{"status":"affected","version":"15.3"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-8xhr-x3v8-rghj","tags":["patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/fcdcfed3fe2e8a3cad66ae0610795a2d58ab9662","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-20852","tags":["exploit","issue-tracking","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40573","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-10-03T16:19:41.951Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-40573","url":"https://www.cve.org/CVERecord?id=CVE-2023-40573","licence":"CVE Terms of Use","modified":"2024-10-03T16:21:16.684Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xhr-x3v8-rghj","url":"https://github.com/advisories/GHSA-8xhr-x3v8-rghj","licence":"CC-BY-4.0","modified":"2023-11-08T04:13:21.862Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-40573","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40573","licence":"Public domain","modified":"2026-06-17T06:18:31.613Z"}],"updatedAt":"2026-11-25T22:58:27.325Z","epss":{"score":0.01081,"percentile":0.66125,"date":"2026-12-01T12:00:22.000Z"}}