XWiki allows remote code execution through the extension sheet
Critical severity
GitHub Reviewed
Published
Dec 12, 2024
in
xwiki/xwiki-platform
•
Updated Apr 30, 2025
Package
Affected versions
>= 3.3-milestone-1, < 15.10.9
>= 16.0.0-rc-1, < 16.3.0
Patched versions
15.10.9
16.3.0
Description
Published by the National Vulnerability Database
Dec 12, 2024
Published to the GitHub Advisory Database
Dec 12, 2024
Reviewed
Dec 12, 2024
Last updated
Apr 30, 2025
Impact
On instances where
Extension Repository Applicationis installed, any user can execute any code requiringprogrammingrights on the server.In order to reproduce on an instance, as a normal user without
scriptnorprogrammingrights, go to your profile and add an object of typeExtensionCode.ExtensionClass. Set the description to{{async}}{{groovy}}println("Hello from Description"){{/groovy}}{{/async}}and pressSave and View. If the description displays asHello from Descriptionwithout any error, then the instance is vulnerable.Patches
This vulnerability has been fixed in XWiki 15.10.9 and 16.3.0.
Workarounds
Since
Extension Repository Applicationis not mandatory, it can be safely disabled on instances that do not use it.It is also possible to manually apply this patch to the page
ExtensionCode.ExtensionSheet, as well as this patch to the pageExtensionCode.ExtensionAuthorsDisplayer.References
For more information
If you have any questions or comments about this advisory:
References