Low

Solr script service doesn't take dropped programming right into account

  • Disclosed: 29.04.2025
  • Updated: 11.10.2026 13:20

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.xwiki.platform:xwiki-platform-search-solr-api >= 4.5.1, < 15.10.13, >= 16.0.0-rc-1, < 16.4.4, >= 16.5.0-rc-1, < 16.8.0-rc-1 15.10.13, 16.4.4, 16.8.0-rc-1

References

CVSS score 3.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L
Weakness (CWE)
CWE-863
Platform
Java / Kotlin (Maven)
Package
org.xwiki.platform:xwiki-platform-search-solr-api
Disclosed
29.04.2025
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-987p-r3jc-8c8v - CC BY 4.0

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

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
12.2023 04.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 1
  • Low 1

Disclosures per year

  1. 2023: 2
  2. 2024: 0
  3. 2025: 1
  4. 2026: 0
  1. Solr script service doesn't take dropped programming right into account this entry
    Low · 3.8 CVE-2025-32971 >= 4.5.1, < 15.10.13, >= 16.0.0-rc-1, < 16.4.4, >= 16.5.0-rc-1, < 16.8.0-rc-1 15.10.13, 16.4.4, 16.8.0-rc-1
  2. Medium · 5.3 CVE-2023-50720 < 14.10.15, >= 15.0-rc-1, < 15.5.2, >= 15.6-rc-1, < 15.7-rc-1 14.10.15, 15.5.2, 15.7-rc-1
  3. High · 7.5 CVE-2023-50719 >= 7.2-milestone-2, < 14.10.15, >= 15.0-rc-1, < 15.5.2, >= 15.6-rc-1, < 15.7-rc-1 14.10.15, 15.5.2, 15.7-rc-1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.