The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-50386

CVE-2023-50386: Apache Solr RCE Vulnerability

CVE-2023-50386 is a remote code execution flaw in Apache Solr affecting versions 6.0.0-8.11.2 and 9.0.0-9.4.0. Attackers can upload malicious Java files through ConfigSets API. This article covers technical details, impact, and patches.

Published: February 11, 2026

CVE-2023-50386 Overview

CVE-2023-50386 is a critical vulnerability in Apache Solr that allows authenticated attackers to achieve remote code execution through the ConfigSets API. The vulnerability stems from improper control of dynamically-managed code resources, allowing malicious Java JAR and class files to be uploaded through the ConfigSets API and subsequently loaded by the Java ClassLoader.

In affected versions of Apache Solr, the ConfigSets API accepts Java jar and class files for upload. When backing up Solr Collections using the default LocalFileSystemRepository, these configSet files are saved to disk. If the backup directory overlaps with directories in Solr's ClassPath or ClassLoaders, the uploaded malicious code becomes available for execution with any ConfigSet, regardless of trust settings.

Critical Impact

Authenticated attackers can upload and execute arbitrary Java code on the Solr server, potentially leading to complete system compromise, data exfiltration, and lateral movement within the network.

Affected Products

  • Apache Solr versions 6.0.0 through 8.11.2
  • Apache Solr versions 9.0.0 through 9.4.0
  • Apache Solr deployments using LocalFileSystemRepository for backups (default configuration)

Discovery Timeline

  • 2024-02-09 - CVE-2023-50386 published to NVD
  • 2025-04-24 - Last updated in NVD database

Technical Details for CVE-2023-50386

Vulnerability Analysis

This vulnerability combines three distinct weaknesses that create a dangerous attack chain. The root issue involves improper control of dynamically-managed code resources (CWE-434), unrestricted upload of files with dangerous types, and inclusion of functionality from untrusted control spheres.

The attack exploits the interaction between Solr's ConfigSets API file upload functionality and its backup/restore mechanisms. When an authenticated user with ConfigSet modification permissions uploads a malicious JAR or class file, the file is stored within the ConfigSet. Subsequently, when a backup operation is performed using the default LocalFileSystemRepository, these files are written to the filesystem in a location that may be accessible to Java's ClassLoader.

The vulnerability requires low privileges to exploit, as users only need ConfigSet upload permissions. Once the malicious code is placed in a ClassLoader-accessible location, it can be loaded and executed by any ConfigSet, effectively bypassing Solr's trust mechanisms.

Root Cause

The root cause lies in insufficient validation of file types uploaded through the ConfigSets API combined with unsafe backup storage behavior. The ConfigSets API did not restrict uploads of executable Java artifacts (JAR and class files), and the backup functionality could place these files in directories that are part of Solr's ClassLoader path. This creates a path from authenticated file upload to arbitrary code execution.

Attack Vector

The attack leverages network-accessible APIs and requires authentication with ConfigSet modification permissions. The exploitation flow involves:

  1. An authenticated attacker uploads a malicious JAR or class file via the ConfigSets API
  2. The attacker triggers a backup operation using the Backup API
  3. The backup saves ConfigSet files to a directory accessible by Solr's ClassLoader
  4. The malicious code becomes available to any ConfigSet, trusted or untrusted
  5. When the malicious class is loaded, arbitrary code executes with Solr's privileges

When Solr is configured with Authorization enabled, the attack is somewhat constrained as it requires existing Backup permissions. However, this still represents an unauthorized extension of capabilities, allowing users with backup permissions to deploy executable libraries.

Detection Methods for CVE-2023-50386

Indicators of Compromise

  • Unexpected JAR or class files appearing in Solr ConfigSet directories
  • Unusual backup operations targeting ClassPath directories
  • New or modified files in Solr's lib directories following ConfigSet API activity
  • Unexpected Java class loading events in Solr logs

Detection Strategies

  • Monitor ConfigSets API endpoints for uploads of .jar and .class files
  • Alert on backup operations that target directories within Solr's ClassPath
  • Implement file integrity monitoring on Solr's lib and plugin directories
  • Review Solr access logs for unusual ConfigSet modification patterns by authenticated users

Monitoring Recommendations

  • Enable detailed audit logging for ConfigSets API operations
  • Configure alerts for any file uploads through the ConfigSets API that contain Java executable code
  • Monitor filesystem changes in Solr installation directories, particularly lib folders
  • Track backup API usage and correlate with ConfigSet modifications

How to Mitigate CVE-2023-50386

Immediate Actions Required

  • Upgrade Apache Solr to version 8.11.3 or 9.4.1 immediately
  • Review existing ConfigSets for any unauthorized JAR or class files
  • Audit backup directories for potentially malicious executable files
  • Ensure Solr Authorization is enabled to limit the attack surface

Patch Information

Apache has released fixed versions that implement two key protections:

  1. Users can no longer upload files to a ConfigSet that could be executed via a Java ClassLoader
  2. The Backup API restricts saving backups to directories used in the ClassLoader

Upgrade to Apache Solr version 8.11.3 (for 8.x users) or version 9.4.1 (for 9.x users). For detailed security information, refer to the Apache Solr Security Advisory and the OpenWall Security Mailing List.

Workarounds

  • Enable Solr Authorization to restrict ConfigSet and Backup API access to trusted administrators only
  • Configure backup locations to directories outside of Solr's ClassPath
  • Implement network segmentation to limit access to Solr administrative APIs
  • Regularly audit ConfigSet contents for unauthorized executable files
bash
# Configuration example - Restrict backup directory to non-ClassPath location
# In solr.xml or via API, ensure backup location is isolated:
# Set backup.location to a directory NOT in Solr's ClassPath

# Example: Verify current ClassPath directories
ps aux | grep solr | grep -oP '(?<=-classpath )[^ ]+'

# Ensure backup directories do not overlap with ClassPath
# Configure backup.location in solrconfig.xml:
# <backup>
#   <repository name="local" class="org.apache.solr.core.backup.repository.LocalFileSystemRepository">
#     <str name="location">/var/solr/backups</str>
#   </repository>
# </backup>

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Solr

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability82.43%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • OpenWall Security Mailing List

  • Apache Solr Security Advisory
  • Related CVEs
  • CVE-2026-22444: Apache Solr Information Disclosure Flaw

  • CVE-2026-22022: Apache Solr Auth Bypass Vulnerability

  • CVE-2024-45216: Apache Solr Auth Bypass Vulnerability

  • CVE-2024-52012: Apache Solr Path Traversal 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