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-2020-15824

CVE-2020-15824: JetBrains Kotlin Privilege Escalation

CVE-2020-15824 is a privilege escalation vulnerability in JetBrains Kotlin affecting versions 1.4-M1 to 1.4-RC. The flaw involves script-cache issues in shared temp directories. This article covers technical details.

Published: March 4, 2026

CVE-2020-15824 Overview

CVE-2020-15824 is a privilege escalation vulnerability in JetBrains Kotlin affecting versions from 1.4-M1 to 1.4-RC. The vulnerability exists due to improper handling of kotlin-main-kts cached scripts, which are stored in the system temporary directory. Since this directory is shared by all users by default on most operating systems, a low-privileged attacker can manipulate cached scripts to escalate privileges when another user executes Kotlin scripts.

Critical Impact

Low-privileged attackers can leverage shared temp directory script caching to achieve privilege escalation, potentially gaining elevated access to confidential data or system integrity through network-accessible exploitation.

Affected Products

  • JetBrains Kotlin 1.4.0 Milestone 1 (1.4-M1)
  • JetBrains Kotlin 1.4.0 Milestone 2 (1.4-M2)
  • JetBrains Kotlin 1.4.0 Milestone 3 (1.4-M3)
  • JetBrains Kotlin 1.4.0 Release Candidate (1.4-RC)
  • Oracle Banking Extensibility Workbench 14.2, 14.3, 14.5
  • Oracle Communications Cloud Native Core Policy 1.14.0

Discovery Timeline

  • August 8, 2020 - CVE-2020-15824 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-15824

Vulnerability Analysis

This privilege escalation vulnerability (CWE-269: Improper Privilege Management) arises from an insecure design decision in how Kotlin handles script caching. When users execute Kotlin scripts using the kotlin-main-kts script runner, the compiled script classes are cached in the system's temporary directory (commonly /tmp on Unix systems or %TEMP% on Windows).

The fundamental issue is that this cache location is accessible to all users on the system by default. When a higher-privileged user executes a Kotlin script that has been previously cached, the cached version may have been tampered with by a lower-privileged attacker who has write access to the shared temporary directory.

Kotlin versions 1.3.7x are not affected by this issue, and the vulnerability was fixed in Kotlin version 1.4.0. The fix ensures that cached scripts are stored in a user-specific location with appropriate permissions, preventing cross-user cache manipulation.

Root Cause

The root cause is improper privilege management in the Kotlin script caching mechanism. The kotlin-main-kts component stores compiled script cache files in a world-writable system temporary directory without proper user isolation or integrity verification. This allows any local user to create, modify, or replace cached script files that may subsequently be loaded and executed by other users with different privilege levels.

Attack Vector

The attack vector is network-based according to the CVSS classification, though the exploitation requires local access to the shared cache directory. An attacker with low privileges on a multi-user system can exploit this vulnerability by:

  1. Identifying Kotlin scripts that are likely to be executed by privileged users
  2. Pre-populating or modifying the script cache in the shared temporary directory with malicious compiled code
  3. Waiting for a higher-privileged user to execute the targeted Kotlin script
  4. The victim's Kotlin runtime loads the poisoned cache, executing the attacker's code with the victim's privileges

This attack is particularly effective in enterprise environments where multiple developers or administrators share access to development or build servers.

Detection Methods for CVE-2020-15824

Indicators of Compromise

  • Unexpected modifications to files in the system temp directory with patterns matching kotlin-main-kts cache files
  • Anomalous file creation or modification timestamps in /tmp or %TEMP% directories by unexpected users
  • Script execution failures followed by successful executions after cache manipulation
  • Evidence of symbolic link attacks targeting the Kotlin script cache directory

Detection Strategies

  • Monitor file system activity in shared temporary directories for suspicious cache file creation or modification
  • Implement file integrity monitoring (FIM) on known Kotlin script cache locations
  • Deploy endpoint detection rules to alert on privilege escalation patterns involving Kotlin processes
  • Review system logs for unusual Kotlin script execution patterns across different user contexts

Monitoring Recommendations

  • Enable auditing on temporary directory write operations for early detection of cache poisoning attempts
  • Configure SentinelOne to monitor for suspicious process lineage involving Kotlin script execution
  • Establish baseline behavior for Kotlin development environments and alert on deviations
  • Monitor for symlink creation in temp directories that may indicate exploitation attempts

How to Mitigate CVE-2020-15824

Immediate Actions Required

  • Upgrade JetBrains Kotlin to version 1.4.0 or later immediately
  • Audit systems for any evidence of compromise in shared temporary directories
  • Review Oracle Banking Extensibility Workbench and Oracle Communications Cloud Native Core Policy deployments for bundled vulnerable Kotlin versions
  • Clear existing Kotlin script cache directories on affected systems after upgrading

Patch Information

JetBrains has addressed this vulnerability in Kotlin version 1.4.0. The fix ensures that script cache files are stored in user-specific directories with appropriate permissions, preventing cross-user cache manipulation. Organizations should refer to the JetBrains Q2 2020 Security Bulletin for official guidance.

For Oracle products, refer to the Oracle October 2021 CPU and Oracle January 2022 CPU for patch details related to affected Oracle products bundling Kotlin.

Workarounds

  • Configure a dedicated user-specific directory for Kotlin script caching by setting the appropriate environment variables or system properties
  • Restrict permissions on the system temporary directory to prevent unauthorized write access where feasible
  • Implement temporary directory isolation using containerization or namespace separation for build environments
  • Consider disabling script caching entirely in high-security environments until patches can be applied
bash
# Configuration example: Set restrictive permissions on temp cache directory
mkdir -p /home/$USER/.kotlin-cache
chmod 700 /home/$USER/.kotlin-cache
export KOTLIN_MAIN_KTS_COMPILED_SCRIPTS_CACHE_DIR=/home/$USER/.kotlin-cache

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechJetbrains Kotlin

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.02%

  • 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-269
  • Technical References
  • OpenWall OSS Security Post

  • Apache Announce Thread

  • Apache Groovy Dev Thread

  • Apache Groovy Users Thread

  • Apache Groovy Notifications Thread
  • Vendor Resources
  • JetBrains Q2 2020 Security Bulletin

  • Oracle January 2022 CPU

  • Oracle October 2021 CPU
  • Related CVEs
  • CVE-2022-24329: JetBrains Kotlin Dependency Lock Flaw
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