Home / The Eclipse Foundation / Eclipse Jersey / CVE-2021-28168
CVE-2021-28168: is it exploited, and which versions of The Eclipse Foundation Eclipse Jersey are affected and fixed?
CVE-2021-28168 is a creation of Temporary File With Insecure Permissions vulnerability in The Eclipse Foundation Eclipse Jersey. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:09 UTC). Affected: org.glassfish.jersey.core:jersey-common from 2.28 before 2.34 and org.glassfish.jersey.core:jersey-common from 3.0.0 before 3.0.2 (GitHub advisory GHSA-c43q-5hpj-4crv). Fixed in 2.34 and 3.0.2 (GitHub advisory GHSA-c43q-5hpj-4crv). Severity: Medium (6.2, CVSS 3.1, from eclipse).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 28, 2026, 20:14 UTC and NVD November 19, 2026, 07:58 UTC.
What is CVE-2021-28168?
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.
From the CVE record by eclipse, last updated August 3, 2024, 21:40 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| The Eclipse Foundation | Eclipse Jersey | from 2.28 before unspecified through 2.33 from 3.0.0 before unspecified through 3.0.1 | unspecified |
As the CVE record by eclipse states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.glassfish.jersey.core:jersey-common | >= 2.28, < 2.34 | 2.34 | GHSA-c43q-5hpj-4crv |
| Maven | org.glassfish.jersey.core:jersey-common | >= 3.0.0, < 3.0.2 | 3.0.2 | GHSA-c43q-5hpj-4crv |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 22, 2021. Summary: Local information disclosure via system temporary directory.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| eclipse | jersey | from 2.28 before 2.34 | application |
| eclipse | jersey | from 3.0.0 before 3.0.2 | application |
| oracle | communications cloud native core policy | 1.15.0 | application |
| oracle | communications cloud native core unified data repository | 1.15.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:45 UTC.
How severe is CVE-2021-28168?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.2 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | eclipse |
| Medium 5.5 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | NVD |
| Low 2.1 | CVSS 2.0 | AV:L/AC:L/Au:N/C:P/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-28168 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.85% probability of exploitation activity in the next 30 days, percentile 59.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-378 Creation of Temporary File With Insecure Permissions
- CWE-379 Creation of Temporary File in Directory with Insecure Permissions
- CWE-668 Exposure of Resource to Wrong Sphere
- CWE-732 Incorrect Permission Assignment for Critical Resource
Where are the vendor advisories and references?
- https://github.com/eclipse-ee4j/jersey/security/advisories/GHSA-c43q-5hpj-4crv x_refsource_CONFIRM
- https://github.com/eclipse-ee4j/jersey/pull/4712 x_refsource_CONFIRM
- [kafka-jira] 20210429 [GitHub] [kafka] xjin-Confluent opened a new pull request #10614: MINOR: Upgrade jersey to 2.34 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210505 [jira] [Created] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-dev] 20210505 [jira] [Created] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210505 [GitHub] [kafka] shayelkin opened a new pull request #10636: MINOR: Bump Jersey deps to 2.34 due to CVE-2021-28168 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210506 [jira] [Assigned] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210506 [jira] [Commented] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210506 [GitHub] [kafka] dongjinleekr opened a new pull request #10641: KAFKA-12752: CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210506 [GitHub] [kafka] omkreddy commented on pull request #10641: KAFKA-12752: CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210506 [GitHub] [kafka] omkreddy merged pull request #10636: MINOR: Bump Jersey deps to 2.34 due to CVE-2021-28168 mailing-list, x_refsource_MLIST
- [kafka-commits] 20210506 [kafka] branch 2.7 updated: KAFKA-12752: Bump Jersey deps to 2.34 due to CVE-2021-28168 (#10636) mailing-list, x_refsource_MLIST
- [kafka-commits] 20210506 [kafka] branch 2.8 updated: KAFKA-12752: Bump Jersey deps to 2.34 due to CVE-2021-28168 (#10636) mailing-list, x_refsource_MLIST
- [kafka-jira] 20210506 [jira] [Resolved] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-dev] 20210506 [jira] [Resolved] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210507 [GitHub] [kafka] dongjinleekr closed pull request #10641: KAFKA-12752: CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210507 [GitHub] [kafka] dongjinleekr commented on pull request #10641: KAFKA-12752: CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-list, x_refsource_MLIST
- [kafka-users] 20210617 vulnerabilities mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- March 12, 2021
- Published
- April 22, 2021, 17:35 UTC
- CVE record updated
- August 3, 2024, 21:40 UTC by eclipse
- NVD
- Modified, last modified June 17, 2026, 03:45 UTC
- Last checked
- CVE list November 28, 2026, 20:14 UTC; NVD November 19, 2026, 07:58 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2021-28168
Is CVE-2021-28168 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:09 UTC. FIRST's EPSS gives it a 0.85% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of The Eclipse Foundation Eclipse Jersey are affected by CVE-2021-28168?
org.glassfish.jersey.core:jersey-common from 2.28 before 2.34 and org.glassfish.jersey.core:jersey-common from 3.0.0 before 3.0.2, per the GitHub advisory GHSA-c43q-5hpj-4crv. The tables above give every range the sources list.
Which version fixes CVE-2021-28168?
2.34 and 3.0.2, per the GitHub advisory GHSA-c43q-5hpj-4crv. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-28168?
Medium (6.2, CVSS 3.1, from eclipse). The severity table above shows each score with its source.
Where is the official record of CVE-2021-28168?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.