CVE-2025-58782: Apache Jackrabbit Core And JCR Commons Are Vulnerability

MODERATE
Advisory Identifier: GHSA-cxvc-g8f2-4gmm
CVSS 6.5
CWE-502
Published
Advisory Summary

CVE-2025-58782 is a MODERATE (CVSS 6.5) core and jcr commons are vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Apache Jackrabbit libraries in the Maven ecosystem. The issue involves core and jcr commons are vulnerable to deserialization of untrusted data. Remediation is available by upgrading affected packages to version 2.22.2.

CVE-2025-58782 at a Glance

CVE Identifier CVE-2025-58782
GHSA Identifier GHSA-cxvc-g8f2-4gmm
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Apache Jackrabbit
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-58782

To remediate this vulnerability, upgrade all affected Apache Jackrabbit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.jackrabbit:jackrabbit-core fixed: 2.22.2
<dependency>
    <groupId>org.apache.jackrabbit</groupId>
    <artifactId>jackrabbit-core</artifactId>
    <version>2.22.2</version>
</dependency>
org.apache.jackrabbit:jackrabbit-jcr-commons fixed: 2.22.2
<dependency>
    <groupId>org.apache.jackrabbit</groupId>
    <artifactId>jackrabbit-jcr-commons</artifactId>
    <version>2.22.2</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.jackrabbit

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-58782, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.jackrabbit

Analyze the terminal output to locate any version of Apache Jackrabbit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.22.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.jackrabbit command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Apache Jackrabbit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

There is a serialization of Untrusted Data vulnerability in Apache Jackrabbit Core and Apache Jackrabbit JCR Commons. This issue affects Apache Jackrabbit Core: from 1.0.0 through 2.22.1; Apache Jackrabbit JCR Commons: from 1.0.0 through 2.22.1. Deployments that accept JNDI URIs for JCR lookup from untrusted users allows them to inject malicious JNDI references, potentially leading to arbitrary code execution through deserialization of untrusted data. Users are recommended to upgrade to version 2.22.2. JCR lookup through JNDI has been disabled by default in 2.22.2. Users of this feature need to enable it explicitly and are adviced to review their use of JNDI URI for JCR lookup.

CVE-2025-58782 Affected Apache Jackrabbit Versions

2 component(s)
Fixed Versions:
2.22.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.jackrabbit:jackrabbit-core
Maven
≥ 1.0.0
< 2.22.2
2.22.2
org.apache.jackrabbit:jackrabbit-jcr-commons
Maven
≥ 1.0.0
< 2.22.2
2.22.2

References

Frequently Asked Questions

What is CVE-2025-58782?
CVE-2025-58782 is a security vulnerability in Apache Jackrabbit involving Core and JCR Commons are vulnerable to Deserialization of Untrusted Data under CWE-502: Deserialization of Untrusted Data.
Which Apache Jackrabbit versions are affected?
Affected versions include releases prior to 2.22.2 across affected packages: org.apache.jackrabbit:jackrabbit-core, org.apache.jackrabbit:jackrabbit-jcr-commons.
What version fixes CVE-2025-58782?
Upgrading to 2.22.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jackrabbit-core affected?
Yes, org.apache.jackrabbit:jackrabbit-core is affected in releases prior to 2.22.2. Upgrade your dependency to 2.22.2 or later.
Is jackrabbit-jcr-commons affected?
Yes, org.apache.jackrabbit:jackrabbit-jcr-commons is affected in releases prior to 2.22.2. Upgrade your dependency to 2.22.2 or later.
What is the CVSS score of CVE-2025-58782?
CVE-2025-58782 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2025-58782?
CVE-2025-58782 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2025-58782?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.jackrabbit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cxvc-g8f2-4gmm",
  "modified" : "2025-11-05T20:43:58Z",
  "published" : "2025-09-08T09:31:09Z",
  "aliases" : [ "CVE-2025-58782" ],
  "summary" : "Apache Jackrabbit: Core and JCR Commons are vulnerable to Deserialization of Untrusted Data",
  "details" : "There is a serialization of Untrusted Data vulnerability in Apache Jackrabbit Core and Apache Jackrabbit JCR Commons.\n\nThis issue affects Apache Jackrabbit Core: from 1.0.0 through 2.22.1; Apache Jackrabbit JCR Commons: from 1.0.0 through 2.22.1.\n\nDeployments that accept JNDI URIs for JCR lookup from untrusted users allows them to inject malicious JNDI references, potentially leading to arbitrary code execution through deserialization of untrusted data. Users are recommended to upgrade to version 2.22.2. JCR lookup through JNDI has been disabled by default in 2.22.2. Users of this feature need to enable it explicitly and are adviced to review their use of JNDI URI for JCR lookup.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.jackrabbit:jackrabbit-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "2.22.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.jackrabbit:jackrabbit-jcr-commons"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "2.22.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58782"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/jackrabbit/pull/229"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/jackrabbit"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/JCR-5135"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/t4wdrost6dh17dh406g792j9wq6xmy6v"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/09/06/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-09T15:14:38Z",
    "nvd_published_at" : "2025-09-08T09:15:30Z"
  }
}