CVE-2021-28168
lowpriority · track · 22EPSS 0.009 · 59 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 2.1–6.2
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (39)
Products and version ranges known to be affected.
- Oracle Financial Services Applications 1.0.2.1all versionscert_bundDEcpe:/a:oracle:financial_services_applications:1.0.2.1
- Oracle Financial Services Applications 11.3.1.0all versionscert_bundDEcpe:/a:oracle:financial_services_applications:11.3.1.0
- Oracle Financial Services Applications 11.3.2.0all versionscert_bundDEcpe:/a:oracle:financial_services_applications:11.3.2.0
- Oracle Financial Services Applications 12.0.5.0all versionscert_bundDEcpe:/a:oracle:financial_services_applications:12.0.5.0
- Oracle Financial Services Applications 12.1.1.0all versionscert_bundDEcpe:/a:oracle:financial_services_applications:12.1.1.0
- Oracle Financial Services Applications 14.8.1.0.0all versionscert_bundDEcpe:/a:oracle:financial_services_applications:14.8.1.0.0
- Oracle Financial Services Applications 14.8.2.0.0all versionscert_bundDEcpe:/a:oracle:financial_services_applications:14.8.2.0.0
- Oracle Financial Services Applications 8.0.7.9all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.0.7.9
- Oracle Financial Services Applications 8.0.8all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.0.8
- Oracle Financial Services Applications 8.0.8.1all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.0.8.1
- Oracle Financial Services Applications 8.0.8.2all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.0.8.2
- Oracle Financial Services Applications 8.0.8.7all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.0.8.7
- Oracle Financial Services Applications 8.1.2.10all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.1.2.10
- Oracle Financial Services Applications 8.1.2.11all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.1.2.11
- Oracle Financial Services Applications 8.1.2.5all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.1.2.5
- Oracle Financial Services Applications 8.1.2.7all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.1.2.7
- Oracle Financial Services Applications 8.1.2.8.0all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.1.2.8.0
- Oracle Financial Services Applications 8.1.2.9all versionscert_bundDEcpe:/a:oracle:financial_services_applications:8.1.2.9
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-1807Oracle Fusion Middleware: Mehrere SchwachstellenDeutsch2023-07-18csaf · cert_bundDE
Ein Angreifer aus dem angrenzenden Netzwerk oder ein entfernter anonymer, authentisierter oder lokaler Angreifer kann mehrere Schwachstellen in Oracle Fusion Middleware ausnutzen, um die Vertraulichkeit, Integrität und Verfügbarkeit zu gefährden.
- WID-SEC-W-2026-1204Oracle Financial Services Applications: Mehrere SchwachstellenDeutsch2026-04-21csaf · cert_bundDE
Ein entfernter, anonymer oder authentisierter Angreifer kann mehrere Schwachstellen in Oracle Financial Services Applications ausnutzen, um die Vertraulichkeit, Integrität und Verfügbarkeit zu gefährden.
- GHSA-c43q-5hpj-4crvLocal information disclosure via system temporary directory2021-04-23ghsa · osvUS
## Impact Eclipse Jersey 2.28 - 2.33 and Eclipse Jersey 3.0.0 - 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. ## Workaround This issue can be mitigated by manually setting the `java.io.tmpdir` system property when launching the JVM. ## Patches Jersey 2.34 and 3.0.2 forward sets the correct permissions on the temporary file created by Jersey. ### References - https://github.com/eclipse-ee4j/jersey/pull/4712 - [CWE-378: Creation of Temporary File With Insecure Permissions](https://cwe.mitre.org/data/definitions/378.html) - [CWE-379: Creation of Temporary File in Directory with Insecure Permissions](https://cwe.mitre.org/data/definitions/379.html) ## Similar Vulnerabilities Similar, but not the same: - JUnit 4 - https://github.com/junit-team/junit4/security/advisories/GHSA-269g-pwp5-87pp - Google Guava - https://github.com/google/guava/issues/4011 - Apache Ant - https://nvd.nist.gov/vuln/detail/CVE-2020-1945 - JetBrains Kotlin Compiler - https://nvd.nist.gov/vuln/detail/CVE-2020-15824 - Eclipse Jetty - https://github.com/eclipse/jetty.project/security/advisories/GHSA-g3wg-6mcf-8jj6 --- Original Disclosure: > Hello Jersey Security Team, > > Utilizing a custom CodeQL query written as a part of the [GitHub Security Lab](https://securitylab.github.com/) [Bug Bounty program](https://securitylab.github.com/bounties), I've unearthed a local temporary file information disclosure vulnerability. > > You can see the custom CodeQL query utilized here: > https://lgtm.com/query/8831016213790320486/ > > This particular vulnerability exists because on unix-like systems (not including modern versions of MacOS) the system temporary directory is shared between all users. As such, failure to correctly set file permissions and/or verify exclusive creation of directories can lead to either local information disclosure, or local file hijacking by another user. > > This vulnerability impacts the following locations in this project's source: > > - https://github.com/eclipse-ee4j/jersey/blob/01c6a32a2064aeff2caa8133472e33affeb8a29a/core-common/src/main/java/org/glassfish/jersey/message/internal/FileProvider.java#L64-L73 > - https://github.com/eclipse-ee4j/jersey/blob/01c6a32a2064aeff2caa8133472e33affeb8a29a/media/multipart/src/main/java/org/glassfish/jersey/media/multipart/internal/FormDataParamValueParamProvider.java#L202-L208 > > This vulnerability exists because of the vulnerability in the `Utils.createTempFile`: > > https://github.com/eclipse-ee4j/jersey/blob/01c6a32a2064aeff2caa8133472e33affeb8a29a/core-common/src/main/java/org/glassfish/jersey/message/internal/Utils.java#L42-L53 > > This is because `File.createTempFile` 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. > > If there is sensitive information written to these files, it is disclosed to other local users on this system. > > The fix for this vulnerability is to use the `Files` API (instead of the `File` API) to create temporary files/directories as this new API correctly sets the posix file permissions.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (68)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2021-28168cnnvd
- https://github.com/eclipse-ee4j/jersey/pull/4712cnnvd
- https://github.com/eclipse-ee4j/jersey/security/advisories/GHSA-c43q-5hpj-4crvcnnvd
- https://lists.apache.org/thread.html/r2721aba31a8562639c4b937150897e24f78f747cdbda8641c0f659fe@%3Cusers.kafka.apache.org%3Ecnnvd
- https://lists.apache.org/thread.html/r280438f7cb4b3b1c9dfda9d7b05fa2a5cfab68618c6afee8169ecdaa@%3Ccommits.kafka.apache.org%3Ecnnvd
- https://lists.apache.org/thread.html/r305fb82e5c005143c1e2ec986a19c0a44f42189ab2580344dc955359@%3Cdev.kafka.apache.org%3Ecnnvd
- https://lists.apache.org/thread.html/r4066176a7352e021d7a81af460044bde8d57f40e98f8e4a31923af3a@%3Cjira.kafka.apache.org%3Ecnnvd
- https://lists.apache.org/thread.html/r42fef440487a04cf5e487a9707ef5119d2dd5b809919f25ef4296fc4@%3Cjira.kafka.apache.org%3Ecnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan