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-2021-21290

CVE-2021-21290: Netty Information Disclosure Vulnerability

CVE-2021-21290 is an information disclosure vulnerability in Netty affecting Unix-like systems through insecure temp files. When multipart decoders store uploads, local users can access sensitive data. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 25, 2026

CVE-2021-21290 Overview

CVE-2021-21290 is an information disclosure vulnerability in Netty, an open-source asynchronous event-driven network application framework widely used for developing high-performance protocol servers and clients. The vulnerability exists in Netty's multipart decoders on Unix-like systems, where insecure handling of temporary files can lead to local information disclosure when temporary storage of uploads on disk is enabled.

Critical Impact

Local attackers on Unix-like systems can read sensitive information from temporary files created by Netty's multipart decoders due to overly permissive default file permissions, potentially exposing uploaded data to unauthorized users.

Affected Products

  • Netty versions prior to 4.1.59.Final
  • Debian Linux 9.0 and 10.0
  • Quarkus (versions using vulnerable Netty)
  • Oracle Banking Corporate Lending Process Management (14.2.0, 14.3.0, 14.5.0)
  • Oracle Banking Credit Facilities Process Management (14.2.0, 14.3.0, 14.5.0)
  • Oracle Banking Trade Finance Process Management (14.2.0, 14.3.0, 14.5.0)
  • Oracle Communications BRM - Elastic Charging Engine 12.0.0.3
  • Oracle Communications Design Studio 7.4.2
  • Oracle Communications Messaging Server 8.1
  • Oracle NoSQL Database
  • NetApp Active IQ Unified Manager (Linux and Windows)
  • NetApp Cloud Secure Agent
  • NetApp SnapCenter

Discovery Timeline

  • 2021-02-08 - CVE-2021-21290 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-21290

Vulnerability Analysis

This vulnerability stems from insecure file permission handling in Netty's AbstractDiskHttpData class. On Unix-like systems, the system temporary directory (/tmp) is shared between all users. When Netty's multipart decoders write uploaded data to temporary files using Java's File.createTempFile() method, these files are created with default permissions of -rw-r--r-- (644), making them readable by all local users on the system.

The vulnerability specifically impacts applications that use Netty's HTTP multipart handling with disk-based temporary storage enabled. When sensitive data such as authentication tokens, user uploads, or other confidential information is written to these temporary files, any local user can read the contents before the files are cleaned up. This represents a significant confidentiality breach in multi-user environments.

It's important to note that modern macOS operating systems are not affected by this vulnerability due to different default temporary directory permissions.

Root Cause

The root cause lies in the use of the standard Java File.createTempFile() API, which on Unix-like systems creates files with world-readable permissions by default. The AbstractDiskHttpData class in Netty's HTTP codec did not explicitly set restrictive file permissions when creating temporary files for storing multipart HTTP data. Similarly, the NativeLibraryLoader class used the same insecure pattern when extracting native libraries to temporary files.

Attack Vector

This is a local attack vector requiring the attacker to have existing access to the same Unix-like system where the vulnerable Netty application is running. The attack proceeds as follows:

  1. An attacker with local system access monitors the system temporary directory (/tmp or configured java.io.tmpdir)
  2. When a legitimate user uploads data through a Netty-based application with disk storage enabled, the data is written to a world-readable temporary file
  3. The attacker reads the sensitive uploaded data from the temporary file before it is deleted
  4. No special privileges are required beyond basic local user access
java
// Security patch showing migration from File.createTempFile to secure alternative
// Source: https://github.com/netty/netty/commit/c735357bf29d07856ad171c6611a2e1a0e0000ec

// Before (vulnerable):
// tmpFile = File.createTempFile(prefix, suffix, WORKDIR);

// After (fixed in NativeLibraryLoader.java):
tmpFile = PlatformDependent.createTempFile(prefix, suffix, WORKDIR);

The fix uses Files.createTempFile() which creates files with permissions restricted to the owner only, wrapped through PlatformDependent.createTempFile() for consistent secure behavior across platforms.

Detection Methods for CVE-2021-21290

Indicators of Compromise

  • Unusual file access patterns in the system temporary directory (/tmp or custom java.io.tmpdir)
  • Multiple users reading temporary files with patterns matching Netty's naming conventions
  • Unexpected processes monitoring or scanning the temporary directory
  • Evidence of file enumeration activities targeting Java application temporary files

Detection Strategies

  • Monitor file access events in system temporary directories for unauthorized read operations by non-owning users
  • Implement file integrity monitoring on temporary directories to detect suspicious access patterns
  • Review application logs for multipart upload activities and correlate with file system access logs
  • Use endpoint detection tools to identify processes performing directory enumeration on /tmp
  • Audit Java applications for use of vulnerable Netty versions in dependency trees

Monitoring Recommendations

  • Enable file access auditing on Unix-like systems for the /tmp directory and any custom temporary directories
  • Configure SentinelOne behavioral AI to detect unusual file access patterns in shared directories
  • Implement alerting for any non-owner read access to temporary files created by Java applications
  • Monitor for rapid sequential file reads in temporary directories that may indicate automated data exfiltration

How to Mitigate CVE-2021-21290

Immediate Actions Required

  • Upgrade Netty to version 4.1.59.Final or later immediately
  • Audit all applications using Netty as a dependency and update accordingly
  • Review temporary directory permissions on affected systems
  • Consider implementing additional access controls on system temporary directories
  • For Java applications that cannot be immediately updated, configure a dedicated secure temporary directory

Patch Information

The vulnerability has been fixed in Netty version 4.1.59.Final. The fix replaces the use of File.createTempFile() with Files.createTempFile() through the PlatformDependent.createTempFile() wrapper, which creates files with owner-only permissions on Unix-like systems. The patch is available via the GitHub commit and the GitHub Security Advisory.

Oracle has addressed this vulnerability in multiple Critical Patch Updates including April 2021, October 2021, and April 2022 for affected Oracle products.

Workarounds

  • Specify a custom temporary directory with restricted permissions using the -Djava.io.tmpdir JVM argument when starting the application
  • Use DefaultHttpDataFactory.setBaseDir(...) to configure Netty to use a directory that is only readable by the current user
  • Implement directory-level access controls using file system permissions or ACLs to restrict the temporary directory
  • On systemd-based systems, use PrivateTmp=true in service units to provide isolated temporary directories
bash
# Configuration example - Set secure temporary directory with restricted permissions
# Create a dedicated temporary directory for the application
mkdir -p /opt/app/secure-tmp
chown appuser:appgroup /opt/app/secure-tmp
chmod 700 /opt/app/secure-tmp

# Start Java application with custom tmpdir
java -Djava.io.tmpdir=/opt/app/secure-tmp -jar mynettyapp.jar

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechNetty

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-378

  • CWE-668
  • Technical References
  • GitHub Security Advisory

  • Apache Kafka Development Thread

  • Apache Ranger Development Thread

  • Apache Kafka JIRA Discussion

  • Apache Kafka JIRA Update

  • Apache ZooKeeper Development Thread

  • Apache Kafka Development Thread

  • Apache ZooKeeper Issue Discussion

  • Apache Kafka JIRA Update

  • Apache Kafka Development Thread

  • Apache TinkerPop Development Thread

  • Apache Pulsar Commit Discussion

  • Apache Kafka JIRA Update

  • Apache ZooKeeper Issue Discussion

  • Apache ActiveMQ User Discussion

  • Apache Kafka Commit Discussion

  • Apache Kafka JIRA Update

  • Apache Kafka Commit Reference

  • Apache ZooKeeper Development Thread

  • Apache BookKeeper Issue Discussion

  • Apache Ranger Development Thread

  • Apache Pulsar Commit Discussion

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Update

  • Apache Kafka Development Thread

  • Apache Pulsar Commit Discussion

  • Apache ZooKeeper Issue Discussion

  • Apache ZooKeeper Issue Discussion

  • Apache Kafka JIRA Update

  • Apache Pulsar Commit Discussion

  • Apache Kafka JIRA Update

  • Apache Pulsar Commit Discussion

  • Apache Kafka JIRA Update

  • Debian LTS Announcement

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Commit Reference

  • Debian Security Advisory

  • Oracle CPU July 2021 Update

  • Oracle CPU April 2021 Update
  • Related CVEs
  • CVE-2022-24823: Netty HTTP Codec Information Disclosure

  • CVE-2026-33870: Netty HTTP Request Smuggling Vulnerability

  • CVE-2026-33871: Netty HTTP/2 DoS Vulnerability

  • CVE-2025-55163: Netty HTTP/2 MadeYouReset DoS Vulnerability
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