# CVE-2023-37895: Apache Jackrabbit RMI access can lead to RCE

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 3.60% (percentile 90, 2026-11-26)
- **CWE:** CWE-502
- **Aliases:** GHSA-q8cm-3v62-jj79
- **Published:** 2023-07-25T14:02:10.036Z
- **Modified:** 2026-06-17T06:08:50.977Z

## Who should check

- Projects that depend on Maven package org.apache.jackrabbit:jackrabbit-webapp (\>= 2.21.0, \< 2.21.18)
- Projects that depend on Maven package org.apache.jackrabbit:jackrabbit-standalone (\>= 2.21.0, \< 2.21.18)
- Projects that depend on Maven package org.apache.jackrabbit:jackrabbit-standalone-components (\>= 2.21.0, \< 2.21.18)
- Anyone running Apache Software Foundation Apache Jackrabbit Webapp (jackrabbit-webapp) \>= 2.21.0, \< 2.21.18; \>= 1.0.0, \< 2.20.11
- Anyone running Apache Software Foundation Apache Jackrabbit Standalone (jackrabbit-standalone and jackrabbit-standalone-components) \>= 2.21.0, \< 2.21.18; \>= 1.0.0, \< 2.20.11

## 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.

## Affected and fixed versions

- Maven `org.apache.jackrabbit:jackrabbit-webapp`: affected \>= 2.21.0, \< 2.21.18; fixed 2.21.18, 2.20.11 (osv)
- Maven `org.apache.jackrabbit:jackrabbit-standalone`: affected \>= 2.21.0, \< 2.21.18; fixed 2.21.18, 2.20.11 (osv)
- Maven `org.apache.jackrabbit:jackrabbit-standalone-components`: affected \>= 2.21.0, \< 2.21.18; fixed 2.21.18, 2.20.11 (osv)
- Apache Software Foundation Apache Jackrabbit Webapp (jackrabbit-webapp): \>= 2.21.0, \< 2.21.18; \>= 1.0.0, \< 2.20.11 (cvelist)
- Apache Software Foundation Apache Jackrabbit Standalone (jackrabbit-standalone and jackrabbit-standalone-components): \>= 2.21.0, \< 2.21.18; \>= 1.0.0, \< 2.20.11 (cvelist)

## Mitigation

- Upgrade org.apache.jackrabbit:jackrabbit-webapp to one of 2.21.18, 2.20.11 (or later in the same release line).
- Upgrade org.apache.jackrabbit:jackrabbit-standalone to one of 2.21.18, 2.20.11 (or later in the same release line).
- Upgrade org.apache.jackrabbit:jackrabbit-standalone-components to one of 2.21.18, 2.20.11 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-37895. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-37895.md
Affected: org.apache.jackrabbit:jackrabbit-webapp >= 2.21.0, < 2.21.18; org.apache.jackrabbit:jackrabbit-standalone >= 2.21.0, < 2.21.18; org.apache.jackrabbit:jackrabbit-standalone-components >= 2.21.0, < 2.21.18
Fixed in: 2.21.18, 2.20.11

Steps:
1. Search this machine and project for org.apache.jackrabbit:jackrabbit-webapp (Maven), org.apache.jackrabbit:jackrabbit-standalone (Maven), org.apache.jackrabbit:jackrabbit-standalone-components (Maven), Apache Software Foundation Apache Jackrabbit Webapp (jackrabbit-webapp), Apache Software Foundation Apache Jackrabbit Standalone (jac…: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-37895 being exploited?

There is no confirmed exploitation: CVE-2023-37895 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.60% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-37895?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-37895?

org.apache.jackrabbit:jackrabbit-webapp \>= 2.21.0, \< 2.21.18; org.apache.jackrabbit:jackrabbit-standalone \>= 2.21.0, \< 2.21.18; org.apache.jackrabbit:jackrabbit-standalone-components \>= 2.21.0, \< 2.21.18.

### Is there a fix for CVE-2023-37895?

Yes. Fixed in 2.21.18, 2.20.11. Upgrade org.apache.jackrabbit:jackrabbit-webapp to one of 2.21.18, 2.20.11 (or later in the same release line). Upgrade org.apache.jackrabbit:jackrabbit-standalone to one of 2.21.18, 2.20.11 (or later in the same release line). Upgrade org.apache.jackrabbit:jackrabbit-standalone-components to one of 2.21.18, 2.20.11 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-37895?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/list.html?users@jackrabbit.apache.org>
- vendor: <https://lists.apache.org/thread/j03b3qdhborc2jrhdc4d765d3jkh8bfw>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-37895>
- other: <http://seclists.org/fulldisclosure/2023/Jul/43>
- other: <http://www.openwall.com/lists/oss-security/2023/07/25/8>
- other: <https://github.com/apache/jackrabbit>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-37895>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q8cm-3v62-jj79> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-37895> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-37895>
