Medium, CVSS 6.5MavenPublished
xwiki vulnerable to Improper Handling of Exceptional Conditions
CVE-2023-26479 · GHSA-52vf-hvv3-98h7
- Affected
- Maven org.xwiki.platform:xwiki-platform-rendering-parser >= 6.0, < 13.10.10; >= 14.0, < 14.4.6; >= 14.5, < 14.9-rc-1
- Fixed in
- 14.4.614.9-rc-113.10.10· Vendor fix available
- Issue
- Impact Users with write rights can insert well-formed content that is not handled well by the parser. For instance, with xwiki/2.1, inserting a deeply nested group blocks (((( ((( ((( ((( .... ))) ))) ))) ))) (see the generator below to produce a large payload) can lead to the parser throwing a StackOverflowError. As a consequence, some pages becomes unusable, including: - the user index (if the page containing the faulty content is a user page) - the page index Note that on the page, the normal UI is completely missing and it is not possible to open the editor directly to revert the change as the stack overflow is already triggered while getting the title of the document. This means that it is quite difficult to remove this content once inserted. Patches This has been patched on XWiki 13.10.10, 14.4.6, and 14.9-rc-1. Workarounds A temporary solution to avoid Stack Overflow errors is to increase the memory allocated to the stack by using the -Xss JVM parameter (e.g., -Xss32m). This…
Recommended action: Upgrade to 14.9-rc-1 (pre-release), 14.4.6 or 13.10.10 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.