Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-25141

CVE-2023-25141: Apache Sling JCR Base RCE Vulnerability

CVE-2023-25141 is a critical injection flaw in Apache Sling JCR Base affecting versions before 3.1.12 on older JDK releases. Attackers can exploit JNDI and RMI functions to execute remote code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 4, 2026

CVE-2023-25141 Overview

CVE-2023-25141 is a critical injection vulnerability affecting Apache Sling JCR Base versions prior to 3.1.12 when running on older JDK versions (JDK 1.8.191 or earlier). The vulnerability exists in utility functions within the RepositoryAccessor class, specifically the getRepository and getRepositoryFromURL functions. These functions allow an application to access data stored in remote locations via JNDI (Java Naming and Directory Interface) and RMI (Remote Method Invocation), creating an avenue for attackers to exploit injection weaknesses.

Critical Impact

Attackers can leverage JNDI/RMI injection to access sensitive data from remote locations, potentially leading to unauthorized information disclosure on vulnerable systems running legacy JDK versions.

Affected Products

  • Apache Sling JCR Base versions prior to 3.1.12
  • Systems running JDK 1.8.191 or earlier
  • Applications utilizing RepositoryAccessor utility functions

Discovery Timeline

  • 2023-02-14 - CVE-2023-25141 published to NVD
  • 2025-03-20 - Last updated in NVD database

Technical Details for CVE-2023-25141

Vulnerability Analysis

This vulnerability falls under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), commonly referred to as injection. The flaw resides in the RepositoryAccessor class, which provides utility functions for accessing JCR (Java Content Repository) repositories.

The vulnerable functions getRepository and getRepositoryFromURL fail to properly sanitize input when handling JNDI and RMI lookups. When deployed on older JDK versions (specifically JDK 1.8.191 or earlier), the insufficient protections against JNDI injection attacks present in those legacy Java versions compound the vulnerability, enabling attackers to potentially redirect lookups to malicious remote servers.

The network-based attack vector requires no privileges or user interaction, making it particularly concerning for internet-facing deployments. Successful exploitation could result in unauthorized access to confidential data stored in connected repositories.

Root Cause

The root cause stems from inadequate input validation in the RepositoryAccessor utility functions when processing repository URLs. The functions getRepository and getRepositoryFromURL do not sufficiently sanitize or validate the URL parameters before initiating JNDI/RMI lookups. This oversight, combined with the weaker JNDI security controls in older JDK versions, creates the injection vulnerability.

Older JDK versions prior to 1.8.191 lack critical security patches that restrict JNDI lookups to trusted sources, making applications running on these legacy runtimes particularly susceptible to JNDI injection attacks.

Attack Vector

The attack leverages the network-accessible RepositoryAccessor utility functions. An attacker can craft malicious JNDI or RMI URLs that, when processed by the vulnerable getRepository or getRepositoryFromURL functions, redirect the application to attacker-controlled servers. This can result in:

  1. Remote data exfiltration through manipulated JNDI lookups
  2. Access to sensitive repository information
  3. Potential for further exploitation depending on the application context

The vulnerability requires the target system to be running on JDK 1.8.191 or earlier, as newer JDK versions include security mitigations that restrict JNDI remote class loading by default.

Detection Methods for CVE-2023-25141

Indicators of Compromise

  • Unusual outbound JNDI or RMI connections from Apache Sling applications
  • Unexpected network traffic to external LDAP, RMI, or DNS servers from JCR Base components
  • Application logs showing suspicious repository access attempts with non-standard URLs
  • Evidence of RepositoryAccessor methods being invoked with external or untrusted URL patterns

Detection Strategies

  • Monitor application logs for calls to getRepository and getRepositoryFromURL with suspicious URL parameters containing JNDI schemes (ldap://, rmi://, dns://)
  • Implement network monitoring to detect outbound connections from Sling applications to unexpected external hosts
  • Deploy runtime application self-protection (RASP) solutions to detect JNDI injection attempts
  • Use SentinelOne Singularity to identify anomalous process behavior and network connections associated with Java applications

Monitoring Recommendations

  • Enable detailed logging for JCR repository access operations
  • Implement alerting for any JNDI/RMI lookups to external domains
  • Monitor JVM process network activity for connections outside expected repository infrastructure
  • Audit JDK versions across environments to identify systems still running vulnerable JDK releases

How to Mitigate CVE-2023-25141

Immediate Actions Required

  • Upgrade Apache Sling JCR Base to version 3.1.12 or later immediately
  • If immediate patching is not possible, upgrade the JDK to a version newer than 1.8.191
  • Audit all applications using RepositoryAccessor utility functions for potential exposure
  • Implement network segmentation to restrict outbound JNDI/RMI connections from application servers

Patch Information

Apache has released version 3.1.12 of Sling JCR Base which addresses this vulnerability. Users are strongly recommended to upgrade to this version or later. For systems where immediate upgrades are not feasible, running on a more recent JDK provides mitigation as newer JDK versions include security restrictions on JNDI remote class loading.

Official patch information and updates are available through the Apache Sling News Updates.

Workarounds

  • Upgrade to JDK versions newer than 1.8.191 which include JNDI security restrictions
  • Implement network-level controls to block outbound LDAP, RMI, and suspicious DNS traffic from application servers
  • Use a web application firewall (WAF) to filter requests containing JNDI injection patterns
  • Restrict access to the affected RepositoryAccessor methods through application-level access controls
bash
# Example: Check current JDK version
java -version

# Ensure JDK is newer than 1.8.0_191 or upgrade Apache Sling JCR Base
# Verify installed Sling JCR Base version in your Maven dependencies
mvn dependency:tree | grep sling-jcr-base

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Sling

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.71%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-74
  • Vendor Resources
  • Apache Sling News Updates
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English