CVE-2021-28168 Local information disclosure via system temporary directory

Medium 6.2 Published Updated

Local attackers can read sensitive data from temporary files created by Eclipse Jersey due to insecure file permissions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-28168?

CVE-2021-28168 is a medium-severity vulnerability in Oracle Communications Cloud Native Core Policy, published on 22 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-668, CWE-379, CWE-378

Which versions are affected by CVE-2021-28168?

4 open source packages ship an affected version, including org.glassfish.jersey.core:jersey-common. It affects 3 products.

PackageAffectedFixed in
org.glassfish.jersey.core:jersey-common MavenFrom 2.282.34
org.glassfish.jersey.core:jersey-common MavenFrom 2.282.34
org.glassfish.jersey.core:jersey-common MavenFrom 3.0.03.0.2
org.glassfish.jersey.core:jersey-common MavenFrom 3.0.03.0.2

Products include Eclipse Jersey, Oracle Communications Cloud Native Core Policy, Oracle Communications Cloud Native Core Unified Data Repository.

How do I fix CVE-2021-28168?

Upgrade org.glassfish.jersey.core:jersey-common to a fixed version for your release line: 2.34 or 3.0.2.

Is CVE-2021-28168 being exploited?

There is no known exploitation of CVE-2021-28168 in the wild and no public exploit code.

All Oracle Communications Cloud Native Core Policy vulnerabilities

Sources

Also known as GHSA-c43q-5hpj-4crv, OESA-2021-1181, OESA-2024-1036, OESA-2024-1037, OESA-2024-1038, OESA-2024-1039.

Is CVE-2021-28168 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free