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

CVE-2025-32971: Solr script service doesn't take dropped programming right into account

lowCVSS 3.1 3.8GHSA-987p-r3jc-8c8v

Impact The Solr script service that is accessible in XWiki's scripting API normally requires programming right to be called. Due to using the wrong API for checking rights, it doesn't take the fact into account that programming rights might have been dropped by calling $xcontext.dropPermissions().

Published Apr 29, 2025 · Updated Apr 30, 2025

Affected packages

org.xwiki.platform:xwiki-platform-search-solr-api

Ecosystem
Maven
Affected
>= 4.5.1, < 15.10.13
Fixed in
15.10.13
Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-search-solr-api

org.xwiki.platform:xwiki-platform-search-solr-api

Ecosystem
Maven
Affected
>= 16.0.0-rc-1, < 16.4.4
Fixed in
16.4.4
Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-search-solr-api

org.xwiki.platform:xwiki-platform-search-solr-api

Ecosystem
Maven
Affected
>= 16.5.0-rc-1, < 16.8.0-rc-1
Fixed in
16.8.0-rc-1
Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-search-solr-api

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

The Solr script service that is accessible in XWiki's scripting API normally requires programming right to be called. Due to using the wrong API for checking rights, it doesn't take the fact into account that programming rights might have been dropped by calling $xcontext.dropPermissions(). If some code relies on this for the safety of executing Velocity code with the wrong author context, this could allow a user with script right to either cause a high load by indexing documents or to temporarily remove documents from the search index. We're not aware that this is exploitable in XWiki itself.

To reproduce, a user with programming right can add the following XWiki syntax to a page:

{{velocity}}
$xcontext.dropPermissions()
$services.solr.index('document:xwiki:Main.WebHome')
{{/velocity}} 

This should trigger an error in XWiki's log, otherwise the installation is vulnerable.

Patches

This has been patched in XWiki 15.10.13, 16.8.0RC1, and 16.4.4.

Workarounds

We're not aware of any workarounds apart from being careful whom you grant script right.

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