Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.platform/xwiki-platform-search-solr-api
  4. ›
  5. CVE-2025-32971

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

April 29, 2025 (updated April 30, 2025)

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.

References

  • github.com/advisories/GHSA-987p-r3jc-8c8v
  • github.com/xwiki/xwiki-platform
  • github.com/xwiki/xwiki-platform/commit/6570f40f976aec82baf388b5239d1412cab238c9
  • github.com/xwiki/xwiki-platform/security/advisories/GHSA-987p-r3jc-8c8v
  • jira.xwiki.org/browse/XWIKI-22474
  • nvd.nist.gov/vuln/detail/CVE-2025-32971

Code Behaviors & Features

Detect and mitigate CVE-2025-32971 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.5.1 before 15.10.13, all versions starting from 16.0.0-rc-1 before 16.4.4, all versions starting from 16.5.0-rc-1 before 16.8.0-rc-1

Fixed versions

  • 15.10.13
  • 16.4.4
  • 16.8.0-rc-1

Solution

Upgrade to versions 15.10.13, 16.4.4, 16.8.0-rc-1 or above.

Impact 3.8 LOW

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

maven/org.xwiki.platform/xwiki-platform-search-solr-api/CVE-2025-32971.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.