From 829884bc2055f691f5c32c4eb573301a21827d0a Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Tue, 29 Apr 2025 14:01:13 +0000 Subject: [PATCH] Publish GHSA-987p-r3jc-8c8v --- .../GHSA-987p-r3jc-8c8v.json | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 advisories/github-reviewed/2025/04/GHSA-987p-r3jc-8c8v/GHSA-987p-r3jc-8c8v.json diff --git a/advisories/github-reviewed/2025/04/GHSA-987p-r3jc-8c8v/GHSA-987p-r3jc-8c8v.json b/advisories/github-reviewed/2025/04/GHSA-987p-r3jc-8c8v/GHSA-987p-r3jc-8c8v.json new file mode 100644 index 00000000000..e1c9e209b0d --- /dev/null +++ b/advisories/github-reviewed/2025/04/GHSA-987p-r3jc-8c8v/GHSA-987p-r3jc-8c8v.json @@ -0,0 +1,103 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-987p-r3jc-8c8v", + "modified": "2025-04-29T13:59:45Z", + "published": "2025-04-29T13:59:45Z", + "aliases": [ + "CVE-2025-32971" + ], + "summary": "Solr script service doesn't take dropped programming right into account", + "details": "### Impact\nThe 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.\n\nTo reproduce, a user with programming right can add the following XWiki syntax to a page:\n```\n{{velocity}}\n$xcontext.dropPermissions()\n$services.solr.index('document:xwiki:Main.WebHome')\n{{/velocity}} \n```\n\nThis should trigger an error in XWiki's log, otherwise the installation is vulnerable.\n\n### Patches\nThis has been patched in XWiki 15.10.13, 16.8.0RC1, and 16.4.4.\n\n### Workarounds\nWe're not aware of any workarounds apart from being careful whom you grant script right.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Maven", + "name": "org.xwiki.platform:xwiki-platform-search-solr-api" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "4.5.1" + }, + { + "fixed": "15.10.13" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Maven", + "name": "org.xwiki.platform:xwiki-platform-search-solr-api" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "16.0.0-rc-1" + }, + { + "fixed": "16.4.4" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Maven", + "name": "org.xwiki.platform:xwiki-platform-search-solr-api" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "16.5.0-rc-1" + }, + { + "fixed": "16.8.0-rc-1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-987p-r3jc-8c8v" + }, + { + "type": "WEB", + "url": "https://github.com/xwiki/xwiki-platform/commit/6570f40f976aec82baf388b5239d1412cab238c9" + }, + { + "type": "PACKAGE", + "url": "https://github.com/xwiki/xwiki-platform" + }, + { + "type": "WEB", + "url": "https://jira.xwiki.org/browse/XWIKI-22474" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-863" + ], + "severity": "LOW", + "github_reviewed": true, + "github_reviewed_at": "2025-04-29T13:59:45Z", + "nvd_published_at": null + } +} \ No newline at end of file