Skip to content

!!![SECURITY] Update to Apache solr 9.8.0 : CVE-2025-24814 #4292

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 1 commit into from
Jan 29, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 22, 2025

MFAUpdates EXT:solr to Apache Solr 9.8.0.

Apache Solr 9.8.0 disables the possibility to load the jar files with lib directive by default,
which was used to load jar files within the EXT:solr configsets. Apache Solr 10.0.0 will drop that functionality.
All Apache Solr libs, modules or plugins must be configured within the main server configuration files.
See: https://issues.apache.org/jira/browse/SOLR-16781

By using our official Docker image from https://hub.docker.com/r/typo3solr/ext-solr,
you want to pull the image v. 13.0.1+ and restart the container with that image, which will run a migrationsscript
automatically to secure the configuration in used volume automatically.
No other steps are required.

Alternatively you can wipe the volume and start the container with v. 13.0.1+ image, but that method will wipe the index as well.

See the script EXT:solr/Docker/SolrServer/docker-entrypoint-initdb.d/as-sudo/fix-CVE-2025-24814.sh

You have 2 possibilities to fix that issue in your Apache Solr Server:

Refer to https://github.com/TYPO3-Solr/ext-solr/pull/4292/files .

Following 3 files are relevant:

  • Changes in <Apache-Solr data dir>/configsets/ext_solr_13_0_0/conf/solrconfig.xml
  • Changes in <Apache-Solr data dir>/solr.xml
  • Movement from <Apache-Solr data dir>/configsets/ext_solr_13_0_0/typo3lib/solr-typo3-plugin-6.0.0.jar
    • to <Apache-Solr data dir>/typo3lib/solr-typo3-plugin-6.0.0.jar

Steps:

  1. Remove all occurrences of <lib dir=".* from <Apache-Solr data dir>/configsets/ext_solr_13_0_0/conf/solrconfig.xml file.
  2. Replace in <Apache-Solr data dir>/solr.xml file
    the snipped <str name="modules">scripting</str>
    by
    	<str name="modules">scripting,analytics,analysis-extras,langid,clustering,extraction,${solr.modules:}</str>
    	<str name="allowPaths">${solr.allowPaths:}</str>
    	<str name="allowUrls">${solr.allowUrls:}</str>
    
    	<!-- TYPO3 Plugins -->
    	<str name="sharedLib">/var/solr/data/typo3lib/</str>
    
  3. Move the directory from <Apache-Solr data dir>/configsets/ext_solr_13_0_0/typo3lib
    • to <Apache-Solr data dir>/typo3lib

Add following to /etc/default/solr.in.sh file:

SOLR_OPTS="$SOLR_OPTS -Dsolr.config.lib.enabled=true"

Or do that in other ways to set the solr.config.lib.enabled=true to sys-props of Apache Solr Server.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file docker Pull requests that update Docker code labels Jan 22, 2025
@dkd-kaehm dkd-kaehm force-pushed the dependabot/docker/Docker/SolrServer/main/solr-9.8.0 branch from 2816237 to fe8a9ea Compare January 27, 2025 22:23
@dkd-kaehm dkd-kaehm changed the title [TASK] 13.0.x-dev Bump solr from 9.7.0 to 9.8.0 in /Docker/SolrServer !!![SECURITY] Update to Apache solr 9.8.0 : CVE-2025-24814 Jan 27, 2025
@dkd-kaehm dkd-kaehm force-pushed the dependabot/docker/Docker/SolrServer/main/solr-9.8.0 branch from fe8a9ea to 7a62f65 Compare January 27, 2025 22:38
MFAUpdates EXT:solr to Apache Solr 9.8.0.

Apache Solr 9.8.0 disables the possibility to load the `jar` files with `lib` directive by default,
which was used to load jar files within the EXT:solr configsets. Apache Solr 10.0.0 will drop that functionality.
All Apache Solr libs, modules or plugins must be configured within the main server configuration files.
See: https://issues.apache.org/jira/browse/SOLR-16781

By using our official Docker image from https://hub.docker.com/r/typo3solr/ext-solr,
you want to pull the image v. 13.0.1+ and restart the container with that image, which will run a migrationsscript
automatically to secure the configuration in used volume automatically.
No other steps are required.

Alternatively you can wipe the volume and start the container with v. 13.0.1+ image, but that method will wipe the index as well.

See the script `EXT:solr/Docker/SolrServer/docker-entrypoint-initdb.d/as-sudo/fix-CVE-2025-24814.sh`

You have 2 possibilities to fix that issue in your Apache Solr Server:

Refer to https://github.com/TYPO3-Solr/ext-solr/pull/4292/files .

Following 3 files are relevant:

*   Changes in `<Apache-Solr data dir>/configsets/ext_solr_13_0_0/conf/solrconfig.xml`
*   Changes in `<Apache-Solr data dir>/solr.xml`
*   Movement from `<Apache-Solr data dir>/configsets/ext_solr_13_0_0/typo3lib/solr-typo3-plugin-6.0.0.jar`
    *   to `<Apache-Solr data dir>/typo3lib/solr-typo3-plugin-6.0.0.jar`

Steps:

1. Remove all occurrences of `<lib dir=".*` from `<Apache-Solr data dir>/configsets/ext_solr_13_0_0/conf/solrconfig.xml` file.
2. Replace in `<Apache-Solr data dir>/solr.xml` file
   the snipped `<str name="modules">scripting</str>`
   by
   ```
   	<str name="modules">scripting,analytics,analysis-extras,langid,clustering,extraction,${solr.modules:}</str>
   	<str name="allowPaths">${solr.allowPaths:}</str>
   	<str name="allowUrls">${solr.allowUrls:}</str>

   	<!-- TYPO3 Plugins -->
   	<str name="sharedLib">/var/solr/data/typo3lib/</str>
    ```
3. Move the directory from `<Apache-Solr data dir>/configsets/ext_solr_13_0_0/typo3lib`
   * to `<Apache-Solr data dir>/typo3lib`

Add following to `/etc/default/solr.in.sh` file:

```
SOLR_OPTS="$SOLR_OPTS -Dsolr.config.lib.enabled=true"
```

Or do that in other ways to set the `solr.config.lib.enabled=true` to sys-props of Apache Solr Server.
@dkd-kaehm dkd-kaehm force-pushed the dependabot/docker/Docker/SolrServer/main/solr-9.8.0 branch from 7a62f65 to 2a3c1e6 Compare January 28, 2025 07:59
@dkd-kaehm dkd-kaehm merged commit 88918f6 into main Jan 29, 2025
9 checks passed
@dkd-kaehm dkd-kaehm deleted the dependabot/docker/Docker/SolrServer/main/solr-9.8.0 branch January 29, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file docker Pull requests that update Docker code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants