CVE-2024-37898: XWiki Platform vulnerable to document deletion and overwrite from edit

Published Jul 31, 2024
·
Updated

Impact

When a user has edit but not view right on a page in XWiki, that user can delete the page and replace it by a page with new content without having delete right. The previous version of the page is moved into the recycle bin and can be restored from there by an admin. As the user is recorded as deleter, the user would in theory also be able to view the deleted content, but this is not directly possible as rights of the previous version are transferred to the new page and thus the user still doesn't have view right on the page. From all we examined, it therefore doesn't seem to be possible to exploit this to gain any rights.

To reproduce, just replace view by edit in the URL of a page that you cannot view but edit and save. This should send the page to the recycle bin and replace it by an empty one if the XWiki installation is vulnerable. After the fix, an error is displayed when saving.

Patches This has been patched in XWiki 14.10.21, 15.5.5 and 15.10.6 by cancelling save operations by users when a new document shall be saved despite the document's existing already.

Workarounds We're not aware of any workarounds.

References https://jira.xwiki.org/browse/XWIKI-21553 https://github.com/xwiki/xwiki-platform/commit/c5efc1e519e710afdf3c5f40c0fcc300ad77149f

Other sources

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When a user has view but not edit right on a page in XWiki, that user can delete the page and replace it by a page with new content without having delete right. The previous version of the page is moved into the recycle bin and can be restored from there by an admin. As the user is recorded as deleter, the user would in theory also be able to view the deleted content, but this is not directly possible as rights of the previous version are transferred to the new page and thus the user still doesn't have view right on the page. It therefore doesn't seem to be possible to exploit this to gain any rights. This has been patched in XWiki 14.10.21, 15.5.5 and 15.10.6 by cancelling save operations by users when a new document shall be saved despite the document's existing already.

MITRE

Affected Software

9 affected componentsFixes available
maven/org.xwiki.platform:xwiki-platform-oldcore>=15.6-rc-1<15.10.6
15.10.6
maven/org.xwiki.platform:xwiki-platform-oldcore>=15.0<15.5.5
15.5.5
maven/org.xwiki.platform:xwiki-platform-oldcore>=14.2<14.10.21
14.10.21
maven/org.xwiki.platform:xwiki-platform-oldcore>=13.10.4<14.0-rc-1
14.10.21
XWiki xwiki>=13.10.4<14.0
XWiki xwiki>=14.2<14.10.21
XWiki xwiki>15.0<15.5.5
XWiki xwiki>=15.6<15.10.6
XWiki xwiki=15.0

Event History

Jul 31, 2024
CVE Published
via MITRE·03:12 PM
Data Sourced
via MITRE·03:12 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:20 PM
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the impact of CVE-2024-37898?

CVE-2024-37898 allows a user with edit rights but not view rights to delete a page and replace it, leading to potential unauthorized content manipulation.

2

What software versions are affected by CVE-2024-37898?

CVE-2024-37898 affects XWiki versions between 13.10.4 and 15.10.6.

3

How can I mitigate the issues caused by CVE-2024-37898?

To mitigate CVE-2024-37898, upgrade to XWiki version 15.10.6, 15.5.5, or 14.10.21.

4

What privileges can be exploited in CVE-2024-37898?

CVE-2024-37898 exploits the edit and view privilege roles in XWiki, allowing content replacement without delete rights.

5

Who can recover pages affected by CVE-2024-37898?

Only admins can restore the deleted pages that are moved into the recycle bin due to CVE-2024-37898.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203