Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1xOGNtLTN2NjItamo3Oc4AA04Z

Remote code execution in Apache Jackrabbit

Java object deserialization issue in Jackrabbit webapp/standalone on all platforms allows attacker to remotely execute code via RMIVersions up to (including) 2.20.10 (stable branch) and 2.21.17 (unstable branch) use the component "commons-beanutils", which contains a class that can be used for remote code execution over RMI.

Users are advised to immediately update to versions 2.20.11 or 2.21.18. Note that earlier stable branches (1.0.x .. 2.18.x) have been EOLd already and do not receive updates anymore.

In general, RMI support can expose vulnerabilities by the mere presence of an exploitable class on the classpath. Even if Jackrabbit itself does not contain any code known to be exploitable anymore, adding other components to your server can expose the same type of problem. We therefore recommend to disable RMI access altogether (see further below), and will discuss deprecating RMI support in future Jackrabbit releases.

How to check whether RMI support is enabledRMI support can be over an RMI-specific TCP port, and over an HTTP binding. Both are by default enabled in Jackrabbit webapp/standalone.

The native RMI protocol by default uses port 1099. To check whether it is enabled, tools like "netstat" can be used to check.

RMI-over-HTTP in Jackrabbit by default uses the path "/rmi". So when running standalone on port 8080, check whether an HTTP GET request on localhost:8080/rmi returns 404 (not enabled) or 200 (enabled). Note that the HTTP path may be different when the webapp is deployed in a container as non-root context, in which case the prefix is under the user's control.

Turning off RMIFind web.xml (either in JAR/WAR file or in unpacked web application folder), and remove the declaration and the mapping definition for the RemoteBindingServlet:

       
            RMI
            org.apache.jackrabbit.servlet.remote.RemoteBindingServlet
       

       
            RMI
            /rmi
       

Find the bootstrap.properties file (in $REPOSITORY_HOME), and set

        rmi.enabled=false

    and also remove

        rmi.host
        rmi.port
        rmi.url-pattern

 If there is no file named bootstrap.properties in $REPOSITORY_HOME, it is located somewhere in the classpath. In this case, place a copy in $REPOSITORY_HOME and modify it as explained.

 

Permalink: https://github.com/advisories/GHSA-q8cm-3v62-jj79
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xOGNtLTN2NjItamo3Oc4AA04Z
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 9 months ago
Updated: 6 months ago


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

Identifiers: GHSA-q8cm-3v62-jj79, CVE-2023-37895
References: Blast Radius: 13.0

Affected Packages

maven:org.apache.jackrabbit:jackrabbit-standalone-components
Dependent packages: 4
Dependent repositories: 15
Downloads:
Affected Version Ranges: >= 1.0.0, < 2.20.11, >= 2.21.0, < 2.21.18
Fixed in: 2.20.11, 2.21.18
All affected versions: 2.19.2, 2.19.3, 2.19.4, 2.19.5, 2.19.6, 2.20.0, 2.20.1, 2.20.2, 2.20.3, 2.20.4, 2.20.5, 2.20.6, 2.20.7, 2.20.8, 2.20.9, 2.20.10, 2.21.0, 2.21.1, 2.21.2, 2.21.3, 2.21.4, 2.21.5, 2.21.6, 2.21.7, 2.21.8, 2.21.9, 2.21.10, 2.21.11, 2.21.12, 2.21.13, 2.21.14, 2.21.15, 2.21.16, 2.21.17
All unaffected versions: 2.20.11, 2.20.12, 2.20.13, 2.20.14, 2.20.15, 2.21.18, 2.21.19, 2.21.20, 2.21.21, 2.21.22, 2.21.23, 2.21.24, 2.21.25
maven:org.apache.jackrabbit:jackrabbit-standalone
Dependent packages: 12
Dependent repositories: 21
Downloads:
Affected Version Ranges: >= 1.0.0, < 2.20.11, >= 2.21.0, < 2.21.18
Fixed in: 2.20.11, 2.21.18
All affected versions: 1.5.0, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.1, 1.6.2, 1.6.4, 1.6.5
All unaffected versions:
maven:org.apache.jackrabbit:jackrabbit-webapp
Dependent packages: 7
Dependent repositories: 19
Downloads:
Affected Version Ranges: >= 1.0.0, < 2.20.11, >= 2.21.0, < 2.21.18
Fixed in: 2.20.11, 2.21.18
All affected versions: 1.2.1, 1.2.2, 1.2.3, 1.3.1, 1.3.3, 1.5.0, 1.5.2, 1.5.3, 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17.1, 2.17.2, 2.17.3, 2.17.4, 2.17.5, 2.17.6, 2.17.7, 2.18.0, 2.18.1, 2.18.2, 2.18.3, 2.18.4, 2.18.5, 2.18.6, 2.19.0, 2.19.1, 2.19.2, 2.19.3, 2.19.4, 2.19.5, 2.19.6, 2.20.0, 2.20.1, 2.20.2, 2.20.3, 2.20.4, 2.20.5, 2.20.6, 2.20.7, 2.20.8, 2.20.9, 2.20.10, 2.21.0, 2.21.1, 2.21.2, 2.21.3, 2.21.4, 2.21.5, 2.21.6, 2.21.7, 2.21.8, 2.21.9, 2.21.10, 2.21.11, 2.21.12, 2.21.13, 2.21.14, 2.21.15, 2.21.16, 2.21.17
All unaffected versions: 2.20.11, 2.20.12, 2.20.13, 2.20.14, 2.20.15, 2.21.18, 2.21.19, 2.21.20, 2.21.21, 2.21.22, 2.21.23, 2.21.24, 2.21.25