CVE-2024-31464: XWiki Platform: Password hash might be leaked by diff once the xobject holding them is deleted
Impact It is possible to access the hash of a password by using the diff feature of the history whenever the object storing the password is deleted. Using that vulnerability it's possible for an attacker to have access to the hash password of a user if they have rights to edit the users' page.
Published Apr 10, 2024 · Updated Jan 9, 2025
Affected packages
org.xwiki.platform:xwiki-platform-oldcore
- Ecosystem
- Maven
- Affected
- >= 5.0-rc-1, < 14.10.19
- Fixed in
- 14.10.19
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore
org.xwiki.platform:xwiki-platform-oldcore
- Ecosystem
- Maven
- Affected
- >= 15.0-rc-1, < 15.5.4
- Fixed in
- 15.5.4
- 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.9-rc-1
- Fixed in
- 15.9-rc-1
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-oldcore
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
It is possible to access the hash of a password by using the diff feature of the history whenever the object storing the password is deleted. Using that vulnerability it's possible for an attacker to have access to the hash password of a user if they have rights to edit the users' page.
Now with the default right scheme in XWiki this vulnerability is normally prevented on user profiles, except by users with Admin rights. Note that this vulnerability also impacts any extensions that might use passwords stored in xobjects: for those usecases it depends on the right of those pages.
There is currently no way to be 100% sure that this vulnerability has been exploited, as an attacker with enough privilege could have deleted the revision where the xobject was deleted after rolling-back the deletion. But again, this operation requires high privileges on the target page (Admin right). A page with a user password xobject which have in its history a revision where the object has been deleted should be considered at risk and the password should be changed there.
Patches
The vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9-rc-1 by performing a better check before dislaying data of a diff, to ensure it's not coming from a password field.
Workarounds
Admins should ensure that the user pages are properly protected: the edit right shouldn't be allowed for other users than Admin and owner of the profile (which is the default right). Now there's not much workaround possible for a privileged user other than upgrading XWiki.
References
- JIRA ticket: https://jira.xwiki.org/browse/XWIKI-19948
- Commit: https://github.com/xwiki/xwiki-platform/commit/f1eaec1e512220fabd970d053c627e435a1652cf
For more information
If you have any questions or comments about this advisory:
- Open an issue in Jira XWiki.org
- Email us at [Security Mailing List](mailto:[email protected])
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-v782-xr4w-3vqx
- https://github.com/xwiki/xwiki-platform/commit/9075668a4135cce114ef2a4b72eba3161a9e94c4
- https://github.com/xwiki/xwiki-platform/commit/955fb097e02a2a7153f527522ee9eef42447e5d7
- https://github.com/xwiki/xwiki-platform/commit/f1eaec1e512220fabd970d053c627e435a1652cf
- https://jira.xwiki.org/browse/XWIKI-19948
- https://nvd.nist.gov/vuln/detail/CVE-2024-31464
- https://github.com/advisories/GHSA-v782-xr4w-3vqx
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 entriesCVE-2026-34151
XWiki Platform Old Core: Resource path traversal via /skin/ action endpoint in Jetty 12+
high8.2Jul 7, 2026CVE-2026-40104
XWiki's REST APIs can list all pages/spaces, leading to unavailability
medium8.2Apr 14, 2026CVE-2026-33229
XWiki vulnerable to remote code execution with script right through unprotected Velocity scripting API
high8.6Apr 8, 2026CVE-2025-54124
XWiki leaks password hashes and other accessible password properties
high7.1Aug 5, 2025CVE-2025-54125
XWiki exposes passwords and emails stored in fields not named password/email in xml.vm
high8.7Aug 5, 2025CVE-2025-54385
XWiki Platform vulnerable to SQL injection through XWiki#searchDocuments API
high8.6Jul 25, 2025
