cve.bz

CVE-2021-28168 Exposure of Resource to Wrong Sphere

5.5 mediumEPSS 0.8%Fix available

Medium (5.5). EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in org.glassfish.jersey.core:jersey-common 2.34, 3.0.2.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.8% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-668 Exposure of Resource to Wrong Sphere
CWE-378 Creation of Temporary File With Insecure Permissions
CWE-379 Creation of Temporary File in Directory with Insecure Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-28168 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-28168?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-28168?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-28168 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The Eclipse Foundation Eclipse Jerseyfrom 2.28 before unspecified
The Eclipse Foundation Eclipse Jerseythrough 2.33
The Eclipse Foundation Eclipse Jerseyfrom 3.0.0 before unspecified
The Eclipse Foundation Eclipse Jerseythrough 3.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c43q-5hpj-4crvMavenorg.glassfish.jersey.core:jersey-common>=2.28 <2.342.34
GHSA-c43q-5hpj-4crvMavenorg.glassfish.jersey.core:jersey-common>=3.0.0 <3.0.23.0.2

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat OpenStack Platform's OpenDaylight will not be updated for this flaw because it was deprecated as of OpenStack Platform 14 and is only receiving security fixes for Important and Critical flaws.

ProductPackageStateAdvisory
Red Hat AMQ Streams 1.8.0jersey-commonFixed 2021-08-19RHSA-2021:3225
RHINT Camel-K 1.6.4jersey-commonFixed 2022-03-23RHSA-2022:1029
RHINT Camel-Q 2.2.1Fixed 2022-03-22RHSA-2022:1013
Red Hat BPM Suite 6jersey-coreNot affected
Red Hat Fuse 7jersey-commonNot affected
Red Hat Integration Camel Quarkus 1jersey-commonAffected
Red Hat Integration Service Registryjersey-commonWill not fix
Red Hat JBoss Fuse 6jersey-commonNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-metering-hadoopNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-metering-hiveNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-metering-prestoNot affected
Red Hat OpenStack Platform 10 (Newton)opendaylightOut of support scope
Red Hat OpenStack Platform 13 (Queens)opendaylightWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-28168.

References

Check your stackJSON