CVE-2023-37895
Last modified
CVE-2023-37895 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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 .. EPSS estimates a 2.66% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Apache | Jackrabbit | >= 1.0.0, < 2.20.11 |
| Apache | Jackrabbit | >= 2.21.0, < 2.21.18 |
References
- http://www.openwall.com/lists/oss-security/2023/07/25/8Mailing List, Third Party Advisory
- https://lists.apache.org/list.html?users@jackrabbit.apache.orgMailing List, Vendor Advisory
- https://lists.apache.org/thread/j03b3qdhborc2jrhdc4d765d3jkh8bfwMailing List, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2023/07/25/8Mailing List, Third Party Advisory
- https://lists.apache.org/list.html?users@jackrabbit.apache.orgMailing List, Vendor Advisory
- https://lists.apache.org/thread/j03b3qdhborc2jrhdc4d765d3jkh8bfwMailing List, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-37895?
How severe is CVE-2023-37895?
How do I fix CVE-2023-37895?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-3789A vulnerability, which was classified as problematic, was fo…6.1
- CVE-2023-37890Missing Authorization vulnerability in WPOmnia KB Support – …4.3
- CVE-2023-37891Cross-Site Request Forgery (CSRF) vulnerability in OptiMonk …8.8
- CVE-2023-37892Cross-Site Request Forgery (CSRF) vulnerability in Kemal YAZ…8.8
- CVE-2023-37893Unauth. Reflected Cross-Site Scripting (XSS) vulnerability i…6.1
- CVE-2023-37894Unauth. Reflected Cross-Site Scripting (XSS) vulnerability i…6.1
- CVE-2023-37896Nuclei is a vulnerability scanner. Prior to version 2.9.9, a…7.5
- CVE-2023-37897Grav is a file-based Web-platform built in PHP. Grav is subj…8.8
- CVE-2023-37898Joplin is a free, open source note taking and to-do applicat…5.4
- CVE-2023-37899Feathersjs is a framework for creating web APIs and real-tim…7.5
- CVE-2023-3790A vulnerability has been found in Boom CMS 8.0.7 and classif…5.4
- CVE-2023-37900Crossplane is a framework for building cloud native control …2.7
Are you affected by CVE-2023-37895?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
