CVE-2020-15250 JUnit4
| Affected software | JUnit4 |
|---|---|
| Severity | 5.5 Medium CVSS 3.1 3 scores |
| Fixed in | 4.13.1 |
| Weakness | Incorrect permission assignment (CWE-732) |
| Published | 12 Oct 2020 |
| Updated | 13 Nov 2026 |
Description
In JUnit4 from version 4.7 and before 4.13.1, the test rule TemporaryFolder contains a local information disclosure vulnerability. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system. This vulnerability does not allow other users to overwrite the contents of these directories or files. This is purely an information disclosure vulnerability. This vulnerability impacts you if the JUnit tests write sensitive information, like API keys or passwords, into the temporary folder, and the JUnit tests execute in an environment where the OS has other untrusted users. Because certain JDK file system APIs were only added in JDK 1.7, this this fix is dependent upon the version of the JDK you are using. For Java 1.7 and higher users: this vulnerability is fixed in 4.13.1. For Java 1.6 and lower users: no patch is available, you must use the workaround below. If you are unable to patch, or are stuck running on Java 1.6, specifying the java.io.tmpdir system environment variable to a directory that is exclusively owned by the executing user will fix this vulnerability. For more information, including an example of vulnerable code, see the referenced GitHub Security Advisory.
CWE-200 · Information exposure
Exploitation status
No public exploit
No exploit has been reported in the sources we check. Published 6 years ago.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment exploitation: none
- Indexed PoC none indexed
- EPSS 1.7% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full Filesystem
- Action available security rule
- Review human Researcher
- Record active
| Decided by | A researcher's recorded decision for this specific CVE |
|---|---|
| Finding | A researcher found this CVE protected by the ARMR Filesytem read path-to-app. |
Waratek research note
written 2026-11-13Written by a Waratek engineer who reviewed this CVE. Their decision sets the status above, ahead of every automated rule except a withdrawal.
Comments
Rule Name: Filesytem read path-to-app
How to mitigate CVE-2020-15250
Upgrade JUnit4 to 4.13.1 or later. Until you can, Waratek RASP blocks exploitation with its filesystem rule. It runs inside the Java application, with no code changes.
CVSS
5.5 MEDIUM
v3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
3 metrics
CVSS
5.5 MEDIUM v3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
3 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| CVSS 3.1 | 5.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
NVD | Primary | published |
| CVSS 3.1 | 4.4 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N |
security-advisories@github.com | Secondary | |
| CVSS 2.0 | 1.9 | none | AV:L/AC:M/Au:N/C:P/I:N/A:N |
NVD | Primary |
Affected software and releases
Oracle advisories
| Advisory | Type | Quarter | Products Oracle names in its risk matrix |
|---|---|---|---|
| Oracle Critical Patch Update October 2025 ↗ | CPU | 2025-Q4 | Oracle Fusion Middleware / Centralized Thirdparty Jars (GlassFish Server) (12.2.1.4.0, 14.1.1.0.0, 14.1.2.0.0) |
| Oracle Critical Patch Update January 2024 ↗ | CPU | 2024-Q1 | Oracle Financial Services Applications / Infrastructure (Jakarta Expression Language) (14.7.0.3.0) |
| Oracle Critical Patch Update July 2023 ↗ | CPU | 2023-Q3 | Oracle Siebel CRM / EAI (JSON-java) (23.5 and prior) |
| Oracle Critical Patch Update April 2023 ↗ | CPU | 2023-Q2 | Oracle JD Edwards / Business Logic Infra SEC (jUnit) (Prior to 9.2.7.3) |
| Oracle Critical Patch Update April 2022 ↗ | CPU | 2022-Q2 | Oracle Communications / Policy (JUnit) (1.14.0) |
Oracle components and versions
| Family | Component | Versions, as Oracle lists them | Read as |
|---|---|---|---|
| Oracle Communications | Policy (JUnit) | 1.14.0 | 1.14.0 |
| Oracle Financial Services Applications | Infrastructure (Jakarta Expression Language) | 14.7.0.3.0 | 14.7.0.3.0 |
| Oracle Fusion Middleware | Centralized Thirdparty Jars (GlassFish Server) | 12.2.1.4.0, 14.1.1.0.0, 14.1.2.0.0 | 12.2.1.4.0 · 14.1.1.0.0 · 14.1.2.0.0 |
| Oracle JD Edwards | Business Logic Infra SEC (jUnit) | Prior to 9.2.7.3 | |
| Oracle Siebel CRM | EAI (JSON-java) | 23.5 and prior |
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
junit:junit |
4.7 | 4.13.1 |
unbounded |
Products and versions
5 products, 5 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | apache | pluto | generic | < 3.1.1 |
| nvd | debian | debian linux | generic | 9.0 |
| osv | junit | junit | generic | ≥ 4.7 and < 4.13.1 |
| nvd | junit | junit4 | generic | ≥ 4.7 and < 4.13.1 |
| nvd | oracle | communications cloud native core policy | generic | 1.14.0 |
References
Timeline
Timeline
| Published | 2020-10-12 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-10-07 | NVD's own last-modified date for this record. |
| Classification created | 2026-11-13 | First commit adding this CVE's research note. |
| Last VRT activity | 2026-11-13 | Most recent commit touching this CVE's classification, patch or rule file. |