CVE-2021-28168
Local information disclosure via system temporary directory
Reported by eclipse · Published April 22, 2021
jersey-common is fixed in 3.0.2 and 2.34 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.glassfish.jersey.core:jersey-common | Maven Central | 3.0.2, 2.34 |
| net.minidev:json-smart | Maven Central | 2.4.9 |
| cassandra-reaper | Chainguard | 4.0.1-r1 |
| cassandra-reaper | Wolfi | 4.0.1-r1 |
| jersey | eclipse | 3.0.2, 2.34 |
| Eclipse Jersey | The Eclipse Foundation | unspecified, 3.0.1, 2.33 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| The Eclipse Foundation | Eclipse Jersey | 2.28, unspecified, 3.0.0 |
| chainguard | cassandra-reaper | 0 |
| The Eclipse Foundation | Eclipse Jersey | 2.28, *, 3.0.0 |
| Maven | org.glassfish.jersey.core:jersey-common | 3.0.0, 2.28 |
| wolfi | cassandra-reaper | 0 |
Timeline
- Apr 22, 2021 CVE Published
- Apr 27, 2021 EPSS Score (30 in total, the first dated here)
- Jun 28, 2021 PoC Published (6 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Aug 6, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-28168
vulnetix vdb fixes CVE-2021-28168
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-28168/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- [kafka-jira] 20210429 [GitHub] [kafka] xjin-Confluent opened a new pull request #10614: MINOR: Upgrade jersey to 2.34 mailing-listx_refsource_MLIST
- [kafka-jira] 20210505 [jira] [Created] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-listx_refsource_MLIST
- [kafka-dev] 20210505 [jira] [Created] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-listx_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-listx_refsource_MLIST
- [kafka-jira] 20210506 [jira] [Assigned] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-listx_refsource_MLIST
- [kafka-jira] 20210506 [jira] [Commented] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-listx_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-listx_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-listx_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-listx_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-listx_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-listx_refsource_MLIST
- [kafka-jira] 20210506 [jira] [Resolved] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-listx_refsource_MLIST
- [kafka-dev] 20210506 [jira] [Resolved] (KAFKA-12752) CVE-2021-28168 upgrade jersey to 2.34 or 3.02 mailing-listx_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-listx_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-listx_refsource_MLIST
- [kafka-users] 20210617 vulnerabilities mailing-listx_refsource_MLIST
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-28168 advisory