{"id":"GHSA-r279-47wg-chpr","summary":"XWiki allows RCE from script right in configurable sections","details":"### Impact\nAny user with script rights can perform arbitrary remote code execution by adding instances of `XWiki.ConfigurableClass` to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation.\n\nTo reproduce on a instance, as a user with script rights, edit your user profile and add an object of type `XWiki.ConfigurableClass` (\"Custom configurable sections\").\nSet \"Display in section\" and \"Display in category\" to `other`, \"Scope\" to `Wiki and all spaces` and \"Heading\" to:\n```\n#set($codeToExecute = 'Test') #set($codeToExecuteResult = '{{async}}{{groovy}}services.logging.getLogger(\"attacker\").error(\"Attack from Heading succeeded!\"){{/groovy}}{{/async}}')\n```\nSave the page and view it, then add `?sheet=XWiki.AdminSheet&viewer=content&section=other` to the URL.\nIf the logs contain \"attacker - Attack from Heading succeeded!\", then the instance is vulnerable.\n\n### Patches\nThis has been patched in XWiki 15.10.9 and 16.3.0.\n\n### Workarounds\nWe're not aware of any workaround except upgrading.\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-21207\n* https://github.com/xwiki/xwiki-platform/commit/8493435ff9606905a2d913607d6c79862d0c168d\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)","aliases":["CVE-2024-55879"],"modified":"2026-02-04T04:27:19.349839Z","published":"2024-12-12T19:20:56Z","related":["CVE-2024-55879"],"database_specific":{"nvd_published_at":"2024-12-12T20:15:21Z","cwe_ids":["CWE-862"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2024-12-12T19:20:56Z"},"references":[{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-r279-47wg-chpr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55879"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/8493435ff9606905a2d913607d6c79862d0c168d"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-platform"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-21207"}],"affected":[{"package":{"name":"org.xwiki.platform:xwiki-platform-administration-ui","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-administration-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3"},{"fixed":"15.10.9"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-r279-47wg-chpr/GHSA-r279-47wg-chpr.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-administration-ui","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-administration-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"16.0.0-rc-1"},{"fixed":"16.3.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-r279-47wg-chpr/GHSA-r279-47wg-chpr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"}]}