-
Notifications
You must be signed in to change notification settings - Fork 1
Fix CVE-2025-66516: Upgrade to Solr 9.10 with external Tika server #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ce9d1fe
Upgrade to Solr 9.10 with external Tika server (CVE-2025-66516 fix)
reekitconcept f4e6457
Make upgrade docs clearer that you have to start running a Tika servi…
davisagli f1334ae
More accurate release note for the Python package
davisagli 25db426
fix Vale error
davisagli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Enable the `use_tika` setting from `collective.solr` to make sure text can be extracted from binary files with recent versions of Solr. @reebalazs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
backend/src/kitconcept/solr/profiles/default/registry/collective.solr.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <registry> | ||
|
|
||
| <record name="collective.solr.use_tika"> | ||
| <value>True</value> | ||
| </record> | ||
|
|
||
| </registry> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| --- | ||
| myst: | ||
| html_meta: | ||
| "description": "Upgrade guide for CVE-2025-66516 Tika vulnerability fix" | ||
| "property=og:description": "Upgrade guide for CVE-2025-66516 Tika vulnerability fix" | ||
| "property=og:title": "Upgrade guide for CVE-2025-66516" | ||
| "keywords": "Plone, kitconcept Solr, security, CVE, Tika, upgrade" | ||
| --- | ||
|
|
||
| # Upgrade Guide: CVE-2025-66516 (Tika XXE Vulnerability) | ||
|
|
||
| This guide explains what changes are required after upgrading to address the CVE-2025-66516 vulnerability in Apache Tika. | ||
|
|
||
| This fix is included in `kitconcept.solr` version **2.0.0a8** and later. This guide applies to all version 2 users, as well as users upgrading from version 2.0.0a7 or earlier to later 2.x versions. | ||
|
|
||
| **Note for version 1.x alpha users:** Version 1.x was never officially released (the project transitioned directly to version 2 with the new repository structure). Users of the 1.x alpha versions are recommended to migrate to version 2, which can be done without any further changes. | ||
|
|
||
| ## Background | ||
|
|
||
| CVE-2025-66516 is a critical XML External Entity (XXE) vulnerability in Apache Tika versions prior to 3.2.0. The fix involves upgrading to Solr 9.10 with an external Tika 3.2.3 server. | ||
|
|
||
| ## Users on the Vanilla kitconcept.solr Image | ||
|
|
||
| You are using the vanilla image if your Docker Compose configuration references: | ||
|
|
||
| ```yaml | ||
| solr: | ||
| image: ghcr.io/kitconcept/solr | ||
| ``` | ||
|
|
||
| You will need to start running the Tika server as a separate service. | ||
| Check the project's `docker-compose.yml` for the current reference configuration. | ||
|
|
||
| Then pull the new `ghcr.io/kitconcept/solr` image and restart your services. The updated image includes: | ||
|
|
||
| - Solr 9.10 with the `extraction` module enabled | ||
| - Configuration to use an external Tika 3.2.3 server (patched against CVE-2025-66516) | ||
|
|
||
| By default, Solr will connect to the Tika server at `http://tika:9998`. | ||
| You can override this using the `solr.tika.url` environment variable. | ||
|
|
||
| ## Users with Custom Solr Images | ||
|
|
||
| If you've built custom Solr images based on this project, you'll need to rebuild your image with the updated configuration. | ||
|
|
||
| **Important:** The fix lies entirely in the configuration update, not in the `kitconcept.solr` Python package. You don't need to upgrade `kitconcept.solr` to fix this vulnerability. | ||
|
|
||
| The key configuration changes are: | ||
|
|
||
| 1. **Solr version**: Upgrade to the newest Solr version (9.x). The base image should be `solr:9.10` or later in your Dockerfile. | ||
| 2. **Environment variable**: Set `SOLR_MODULES=extraction` to enable the extraction module in Solr 9.x | ||
| 3. **External Tika server**: Configure Tika as an external service using version 3.2.3 or later | ||
| 4. **Remove embedded Tika**: The embedded Tika library directives are no longer needed in `solrconfig.xml` | ||
|
|
||
| Refer to the project's Solr configuration files and Docker Compose setup for implementation details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Upgrade to Solr 9.10 with external Tika server 3.2.3 to fix CVE-2025-66516. | ||
| See docs/docs/how-to-guides/upgrade-cve-2025-66516.md for details. @reebalazs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.