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

CVE-2021-28168: Eclipse Jersey Information Disclosure Flaw

CVE-2021-28168 is an information disclosure vulnerability in Eclipse Jersey that exposes sensitive file contents to local users through insecure temp file permissions. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-28168 Overview

Eclipse Jersey versions 2.28 to 2.33 and 3.0.0 to 3.0.1 contain a local information disclosure vulnerability caused by insecure temporary file creation. The vulnerability stems from the use of File.createTempFile which creates files in the system temporary directory with world-readable permissions (-rw-r--r--). This allows any local user on the system to read the contents of these temporary files, potentially exposing security-sensitive information written by Jersey applications.

Critical Impact

Local attackers with system access can read sensitive data from temporary files created by Jersey applications, potentially exposing credentials, session tokens, or other confidential information processed by the application.

Affected Products

  • Eclipse Jersey versions 2.28 through 2.33
  • Eclipse Jersey versions 3.0.0 through 3.0.1
  • Oracle Communications Cloud Native Core Policy 1.15.0
  • Oracle Communications Cloud Native Core Unified Data Repository 1.15.0

Discovery Timeline

  • April 22, 2021 - CVE-2021-28168 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-28168

Vulnerability Analysis

This vulnerability represents a classic insecure temporary file creation pattern in Java applications. When Eclipse Jersey creates temporary files using the standard File.createTempFile() method, these files inherit default permissions that make them readable by all users on the system. On Unix-like systems, this results in files with mode 644 (-rw-r--r--), allowing any local user to read file contents.

The vulnerability is classified under CWE-378 (Creation of Temporary File With Insecure Permissions) and CWE-668 (Exposure of Resource to Wrong Sphere). While the attack requires local access to the system, the confidentiality impact is significant since an attacker can access any data written to these temporary files by the Jersey framework.

Root Cause

The root cause is the use of Java's File.createTempFile() method without subsequent permission restrictions. This legacy Java API creates files with platform-default permissions that are overly permissive on most systems. The proper mitigation involves using Java NIO's Files.createTempFile() with explicit PosixFilePermissions to restrict file access to the owner only.

Attack Vector

An attacker exploiting this vulnerability requires local access to the target system where a vulnerable Jersey application is running. The attack proceeds as follows:

  1. The attacker monitors the system's temporary directory (typically /tmp on Unix systems) for files created by the Jersey application
  2. When the vulnerable application creates temporary files, they are created with world-readable permissions
  3. The attacker reads the contents of these files before they are deleted
  4. If the files contain sensitive data such as authentication tokens, request bodies, or cached credentials, the attacker gains access to this information

The vulnerability specifically affects multipart form data processing, where Jersey may temporarily store uploaded file contents or request data in the system temporary directory before processing.

Detection Methods for CVE-2021-28168

Indicators of Compromise

  • Unusual read access to temporary files in /tmp or system temporary directories by unauthorized user accounts
  • Monitoring of temporary file creation patterns by non-application users
  • Presence of unauthorized processes performing inotify watches on temporary directories
  • Log entries showing repeated access to Jersey-created temporary files from different user contexts

Detection Strategies

  • Monitor file access patterns in system temporary directories for unauthorized reads of Jersey application temporary files
  • Implement file integrity monitoring to detect when temporary files are accessed by users other than the application owner
  • Review application dependency manifests to identify vulnerable Eclipse Jersey versions in your software inventory
  • Use software composition analysis (SCA) tools to scan for affected Jersey library versions across your environment

Monitoring Recommendations

  • Configure auditd or similar auditing tools to log read operations on the system temporary directory by non-application users
  • Implement real-time alerting for unusual file access patterns in temporary storage locations
  • Monitor for reconnaissance activity targeting application temporary file naming conventions
  • Review application logs for potential data exposure events correlating with temporary file creation

How to Mitigate CVE-2021-28168

Immediate Actions Required

  • Upgrade Eclipse Jersey to version 2.34 or later (for 2.x branch) or 3.0.2 or later (for 3.x branch)
  • Review Oracle product deployments and apply patches from the Oracle Critical Patch Update April 2022
  • Audit systems for any evidence of local user access to Jersey application temporary files
  • Restrict access to system temporary directories where feasible through OS-level controls

Patch Information

Eclipse has addressed this vulnerability in the official fix merged via GitHub Pull Request #4712. The fix modifies temporary file creation to use secure APIs that create files with owner-only permissions. Organizations should upgrade to patched versions as soon as possible.

For detailed technical information about the vulnerability and its remediation, refer to the GitHub Security Advisory GHSA-c43q-5hpj-4crv.

Workarounds

  • Configure the application to use a dedicated temporary directory with restrictive permissions (mode 700) accessible only to the application user
  • Implement OS-level access controls on the system temporary directory to limit which users can list directory contents
  • Deploy applications in containerized environments with isolated temporary file systems
  • Configure process isolation to prevent other users from accessing the application's temporary file space
bash
# Create a dedicated secure temporary directory for the application
mkdir -p /var/tmp/jersey-secure
chmod 700 /var/tmp/jersey-secure
chown appuser:appgroup /var/tmp/jersey-secure

# Set the Java temporary directory for the application
export JAVA_OPTS="-Djava.io.tmpdir=/var/tmp/jersey-secure"

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechEclipse Jersey

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.16%

  • 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 Thread Discussion

  • Apache Kafka Commit Discussion

  • Apache Kafka Dev Discussion

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Update

  • Apache Kafka Commit Discussion

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Update

  • Apache Kafka Dev Discussion

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Update

  • Oracle Security Alert
  • Vendor Resources
  • GitHub Pull Request
  • Related CVEs
  • CVE-2025-12383: Eclipse Jersey Race Condition 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