eclipse jersey CVE-2021-28168 in Eclipse and Oracle Products
Published on April 22, 2021

product logo product logo
Eclipse Jersey 2.28 to 2.33 and Eclipse Jersey 3.0.0 to 3.0.1 contains a local information disclosure vulnerability. This is due to the use of the File.createTempFile which creates a file inside of the system temporary directory with the permissions: -rw-r--r--. Thus the contents of this file are viewable by all other users locally on the system. As such, if the contents written is security sensitive, it can be disclosed to other local users.

Github Repository NVD

Vulnerability Analysis

CVE-2021-28168 is exploitable with local system access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity and availability.

Attack Vector:
LOCAL
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
NONE
Availability Impact:
NONE

Weakness Types

Creation of Temporary File With Insecure Permissions

Opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack.

Creation of Temporary File in Directory with Insecure Permissions

The software creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file. On some operating systems, the fact that the temporary file exists may be apparent to any user with sufficient privileges to access that directory. Since the file is visible, the application that is using the temporary file could be known. If one has access to list the processes on the system, the attacker has gained information about what the user is doing at that time. By correlating this with the applications the user is running, an attacker could potentially discover what a user's actions are. From this, higher levels of security could be breached.


Products Associated with CVE-2021-28168

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2021-28168 are published in these products:

 
 
 

Affected Versions

The Eclipse Foundation Eclipse Jersey:

Vulnerable Packages

The following package name and versions may be associated with CVE-2021-28168

Package Manager Vulnerable Package Versions Fixed In
maven org.glassfish.jersey.core:jersey-common >= 2.28, <= 2.33 2.34
maven org.glassfish.jersey.core:jersey-common >= 3.0.0, <= 3.0.1 3.0.2

Exploit Probability

EPSS
0.16%
Percentile
36.70%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.