CVE-2023-37895 json
Apache Jackrabbit RMI access can lead to RCE
published 2023-07-25 3 y ago modified 2026-06-17 4 mo ago also GHSA-q8cm-3v62-jj79 , EUVD-2023-2127
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.2%
- EPSS 3.2% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
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:
<servlet> <servlet-name>RMI</servlet-name> <servlet-class>org.apache.jackrabbit.servlet.remote.RemoteBindingServlet</servlet-class> </servlet>
<servlet-mapping> <servlet-name>RMI</servlet-name> <url-pattern>/rmi</url-pattern> </servlet-mapping>
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.
Patch / fix
- maven org.apache.jackrabbit:jackrabbit-webapp 2.20.11, 2.21.18
- maven org.apache.jackrabbit:jackrabbit-standalone 2.20.11, 2.21.18
- maven org.apache.jackrabbit:jackrabbit-standalone-components 2.20.11, 2.21.18
- Apache Software Foundation Apache Jackrabbit Webapp (jackrabbit-webapp) 2.20.11, 2.21.18
- Apache Software Foundation Apache Jackrabbit Standalone (jackrabbit-standalone and jackrabbit-standalone-components) 2.20.11, 2.21.18
- apache jackrabbit 2.20.11, 2.21.18
- jackrabbit Debian 14, Debian 13 2.20.11-1
debian advisories DEBIAN-CVE-2023-37895
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
3.24% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.jackrabbit:jackrabbit-webapp | >=2.21.0, <2.21.18 >=1.0.0, <2.20.11 |
2.21.18 2.20.11 |
| maven | org.apache.jackrabbit:jackrabbit-standalone | >=2.21.0, <2.21.18 >=1.0.0, <2.20.11 |
2.21.18 2.20.11 |
| maven | org.apache.jackrabbit:jackrabbit-standalone-components | >=2.21.0, <2.21.18 >=1.0.0, <2.20.11 |
2.21.18 2.20.11 |
Affected products
- Apache Software Foundation Apache Jackrabbit Webapp (jackrabbit-webapp)
- Apache Software Foundation Apache Jackrabbit Standalone (jackrabbit-standalone and jackrabbit-standalone-components)
- apache jackrabbit
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
lists.apache.org
/thread/j03b3qdhborc2jrhdc4d765d3jkh8bfw
vendor-advisory, web, mailing-list
-
lists.apache.org
/list.html?users@jackrabbit.apache.org
web, mailing-list, vendor-advisory
-
seclists.org
/fulldisclosure/2023/Jul/43
web, broken-link
-
openwall.com
/lists/oss-security/2023/07/25/8
web, mailing-list, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-37895
advisory
-
github.com
/apache/jackrabbit
package
Sources
- CVE List CVE-2023-37895
- GitHub Advisory GHSA-q8cm-3v62-jj79
- NVD CVE-2023-37895
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.