CVE-2023-37895Apache Jackrabbit RMI access can lead to RCE
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | jackrabbit | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | jackrabbit | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | jackrabbit | Under investigation | UBUNTU-CVE-2023-37895 | |
| Ubuntu 22.04 | jackrabbit | Under investigation | UBUNTU-CVE-2023-37895 | |
| Ubuntu 20.04 | jackrabbit | Fix pending | UBUNTU-CVE-2023-37895 | |
| Ubuntu 18.04 | jackrabbit | Fix pending | UBUNTU-CVE-2023-37895 | |
| Ubuntu 16.04 | jackrabbit | Fix pending | UBUNTU-CVE-2023-37895 | |
| Ubuntu 14.04 | jackrabbit | Fix pending | UBUNTU-CVE-2023-37895 | |
| Debian 14 | jackrabbit | Fixed | 2.20.11-1 | DEBIAN-CVE-2023-37895 |
| Debian 13 | jackrabbit | Fixed | 2.20.11-1 | DEBIAN-CVE-2023-37895 |
| Debian 12 | jackrabbit | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2023-37895 | |
| Maven library | org.apache.jackrabbit:jackrabbit-standalone | Fixed | 2.20.11 | GHSA-q8cm-3v62-jj79 |
| Maven library | org.apache.jackrabbit:jackrabbit-standalone-components | Fixed | 2.21.18 | GHSA-q8cm-3v62-jj79 |
| Maven library | org.apache.jackrabbit:jackrabbit-webapp | Fixed | 2.21.18 | GHSA-q8cm-3v62-jj79 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Jackrabbit Webapp (jackrabbit-webapp): affected: 2.21.0 to before 2.21.18, 1.0.0 to before 2.20.11; fixed in
2.21.18,2.20.11 - Apache Software Foundation Apache Jackrabbit Standalone (jackrabbit-standalone and jackrabbit-standalone-components): affected: 2.21.0 to before 2.21.18, 1.0.0 to before 2.20.11; fixed in
2.21.18,2.20.11
Vendor advisories:
- https://lists.apache.org/thread/j03b3qdhborc2jrhdc4d765d3jkh8bfw (vendor-advisory)
References
- https://lists.apache.org/list.html?users@jackrabbit.apache.org
- https://lists.apache.org/thread/j03b3qdhborc2jrhdc4d765d3jkh8bfw
- http://seclists.org/fulldisclosure/2023/Jul/43
- http://www.openwall.com/lists/oss-security/2023/07/25/8
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.