NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

mediumCVSS 4.0 5.3 · 3.1 4.3GHSA-33gp-gmg3-hfpq

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.

Published Jul 31, 2024

Affected packages

org.xwiki.platform:xwiki-platform-oldcore

Ecosystem
Maven
Affected
>= 13.10.4, < 14.0-rc-1
Fixed in
14.10.21
Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore

org.xwiki.platform:xwiki-platform-oldcore

Ecosystem
Maven
Affected
>= 14.2, < 14.10.21
Fixed in
14.10.21
Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore

org.xwiki.platform:xwiki-platform-oldcore

Ecosystem
Maven
Affected
>= 15.0, < 15.5.5
Fixed in
15.5.5
Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore

org.xwiki.platform:xwiki-platform-oldcore

Ecosystem
Maven
Affected
>= 15.6-rc-1, < 15.10.6
Fixed in
15.10.6
Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries