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
    • 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-27899

CVE-2023-27899: Jenkins RCE Vulnerability via File Upload

CVE-2023-27899 is a remote code execution vulnerability in Jenkins that exploits insecure temporary file handling during plugin uploads. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 4, 2026

CVE-2023-27899 Overview

CVE-2023-27899 is a security vulnerability in Jenkins that allows attackers with access to the Jenkins controller file system to potentially achieve arbitrary code execution. The vulnerability stems from insecure temporary file handling during plugin installation, where Jenkins creates temporary files with default permissions in the system's default temporary directory. This race condition vulnerability enables local attackers to read and write the plugin file before Jenkins processes it, potentially allowing malicious code injection.

Critical Impact

Attackers with local file system access to the Jenkins controller can exploit this race condition to inject malicious code during plugin uploads, potentially leading to complete system compromise.

Affected Products

  • Jenkins 2.393 and earlier
  • Jenkins LTS 2.375.3 and earlier
  • All Jenkins installations using default temporary file configurations

Discovery Timeline

  • 2023-03-08 - Jenkins Security Advisory published (SECURITY-2823)
  • 2023-03-10 - CVE-2023-27899 published to NVD
  • 2025-02-28 - Last updated in NVD database

Technical Details for CVE-2023-27899

Vulnerability Analysis

This vulnerability is classified under CWE-863 (Incorrect Authorization), though it manifests as a Time-of-Check Time-of-Use (TOCTOU) race condition in the temporary file handling mechanism. When administrators upload plugins through the Jenkins web interface for installation, the system creates a temporary file to store the plugin archive before processing.

The core issue lies in the file creation process: Jenkins uses the system's default temporary directory (typically /tmp on Linux or %TEMP% on Windows) and relies on default file permissions. On multi-user systems or shared environments, this creates a window of opportunity where an attacker with local access can monitor the temporary directory, identify the newly created plugin file, and modify its contents before Jenkins reads it for installation.

The attack requires precise timing and local file system access to the Jenkins controller, which is why exploitation complexity is considered high despite the severe potential impact.

Root Cause

The root cause is the insecure creation of temporary files during plugin upload operations. Jenkins fails to properly restrict file permissions when creating these temporary files, leaving them accessible to other users on the system. The combination of predictable file location (default temp directory), insufficient access controls (default permissions), and the gap between file creation and file usage creates an exploitable race condition.

Attack Vector

The attack requires local access to the Jenkins controller's file system. An attacker must:

  1. Gain access to the same system where the Jenkins controller runs
  2. Monitor the temporary directory for newly created plugin files during legitimate upload operations
  3. Quickly replace or modify the temporary file content with a malicious plugin archive
  4. Wait for Jenkins to process the modified file, installing the attacker's malicious code

The exploitation requires precise timing to win the race condition between file creation and Jenkins reading the file. This is why the attack complexity is rated as high—successful exploitation depends on the attacker being able to modify the file in the narrow window between creation and use.

For detailed technical information, refer to the Jenkins Security Advisory 2023-03-08.

Detection Methods for CVE-2023-27899

Indicators of Compromise

  • Unusual file access patterns in the system temporary directory during plugin installations
  • Unexpected modifications to plugin files in the temporary storage location
  • Suspicious processes monitoring or accessing Jenkins temporary files
  • Unauthorized plugins appearing in Jenkins installations

Detection Strategies

  • Implement file integrity monitoring on Jenkins temporary directories
  • Monitor for rapid file access sequences targeting plugin upload temp files
  • Enable audit logging on the Jenkins controller's temporary directory
  • Review installed plugins against an approved baseline

Monitoring Recommendations

  • Configure endpoint detection to alert on suspicious file operations in temporary directories
  • Set up anomaly detection for plugin installation patterns
  • Monitor Jenkins controller logs for unexpected plugin installations
  • Enable file access auditing on the Jenkins server

How to Mitigate CVE-2023-27899

Immediate Actions Required

  • Upgrade Jenkins to version 2.394 or later (weekly releases)
  • Upgrade Jenkins LTS to version 2.375.4 or later
  • Review recently installed plugins for unauthorized additions
  • Restrict local file system access to the Jenkins controller

Patch Information

Jenkins has addressed this vulnerability in version 2.394 (weekly) and version 2.375.4 (LTS). The fix ensures that temporary files created during plugin uploads use restrictive permissions that prevent other users from accessing the files. Organizations should update their Jenkins installations to these versions or later. Refer to the Jenkins Security Advisory for official guidance.

Workarounds

  • Configure a dedicated temporary directory for Jenkins with restrictive permissions using the java.io.tmpdir system property
  • Ensure the Jenkins controller runs under a dedicated service account with isolated file system access
  • Implement strict access controls on the system hosting Jenkins to minimize local user access
  • Consider running Jenkins in a containerized environment with isolated file systems
bash
# Configuration example - Set custom temp directory with restrictive permissions
# Add to Jenkins startup configuration or JAVA_OPTS
JAVA_OPTS="-Djava.io.tmpdir=/var/jenkins_home/tmp"

# Ensure the custom temp directory has restrictive permissions
mkdir -p /var/jenkins_home/tmp
chown jenkins:jenkins /var/jenkins_home/tmp
chmod 700 /var/jenkins_home/tmp

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechJenkins

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-863
  • Vendor Resources
  • Jenkins Security Advisory 2023-03-08
  • Related CVEs
  • CVE-2025-53652: Jenkins Git Parameter RCE Vulnerability

  • CVE-2025-31722: Jenkins Templating Engine RCE Vulnerability

  • CVE-2022-20617: Jenkins Docker Commons RCE Vulnerability

  • CVE-2021-21696: Jenkins RCE Vulnerability via Agent Access
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