
CVE catalog
CVE-2020-15250
junit4: CVE-2020-15250
- Severity
- Medium · CVSS 4.4
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.70% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | junit4 | sid | 4.13.2-6 | fixed |
| Debian | junit4 | forky | 4.13.2-6 | fixed |
| Debian | junit4 | trixie | 4.13.2-5 | fixed |
| Debian | junit4 | bookworm | 4.13.2-3 | fixed |
| Cpe | junit4 | Not reported | 4.13.1 | fixed |
| Cpe | debian_linux | Not reported | Not reported | unknown |
| Cpe | pluto | Not reported | 3.1.1 | fixed |
| Cpe | communications_cloud_native_core_policy | Not reported | Not reported | unknown |
| Ubuntu | junit4 | 16.04 | 4.12-2ubuntu1 | vulnerable |
| Ubuntu | junit4 | 16.04 | 4.12-4ubuntu1 | vulnerable |
| Ubuntu | junit4 | 16.04 | 4.12-4ubuntu1.1 | fixed |
| Ubuntu | junit4 | 18.04 | 4.12-5 | vulnerable |
| Ubuntu | junit4 | 18.04 | 4.12-6 | vulnerable |
| Ubuntu | junit4 | 18.04 | 4.12-8~18.04 | vulnerable |
| Ubuntu | junit4 | 18.04 | 4.12-8~18.04.1 | fixed |
| Ubuntu | junit4 | 20.04 | 4.12-8 | vulnerable |
| Ubuntu | junit4 | 20.04 | 4.12-8ubuntu0.20.04.1 | fixed |
| Ubuntu | junit4 | 14.04 | 4.11-2 | vulnerable |
| Ubuntu | junit4 | 16.04 | 4.12-2ubuntu1 | vulnerable |
| Ubuntu | junit4 | 16.04 | 4.12-4ubuntu1 | vulnerable |
| Ubuntu | junit4 | 16.04 | 4.12-4ubuntu1.1 | fixed |
| Ubuntu | junit4 | 18.04 | 4.12-5 | vulnerable |
| Ubuntu | junit4 | 18.04 | 4.12-6 | vulnerable |
| Ubuntu | junit4 | 18.04 | 4.12-8~18.04 | vulnerable |
| Ubuntu | junit4 | 18.04 | 4.12-8~18.04.1 | fixed |
| Ubuntu | junit4 | 20.04 | 4.12-8 | vulnerable |
| Ubuntu | junit4 | 20.04 | 4.12-8ubuntu0.20.04.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | junit4 | source | sid | 4.13.1-1 | not yet assigned | Not reported | [972231] |
| Debian | junit4 | source | forky | 4.13.1-1 | not yet assigned | Not reported | [972231] |
| Debian | junit4 | source | trixie | 4.13.1-1 | not yet assigned | Not reported | [972231] |
| Debian | junit4 | source | bookworm | 4.13.1-1 | not yet assigned | Not reported | [972231] |
| Cpe | junit4 | cpe | Not reported | 4.13.1 | Not reported | NVD-CVE-2020-15250 | Not reported |
| Cpe | pluto | cpe | Not reported | 3.1.1 | Not reported | NVD-CVE-2020-15250 | Not reported |
| Ubuntu | junit4 | deb | 16.04 | 4.12-4ubuntu1.1 | Not reported | USN-4731-1 | Not reported |
| Ubuntu | junit4 | deb | 18.04 | 4.12-8~18.04.1 | Not reported | USN-4731-1 | Not reported |
| Ubuntu | junit4 | deb | 20.04 | 4.12-8ubuntu0.20.04.1 | Not reported | USN-4731-1 | Not reported |
| Ubuntu | junit4 | deb | 16.04 | 4.12-4ubuntu1.1 | Not reported | UBUNTU-CVE-2020-15250 | Not reported |
| Ubuntu | junit4 | deb | 18.04 | 4.12-8~18.04.1 | Not reported | UBUNTU-CVE-2020-15250 | Not reported |
| Ubuntu | junit4 | deb | 20.04 | 4.12-8ubuntu0.20.04.1 | Not reported | UBUNTU-CVE-2020-15250 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [junit4]Fixed
Details (2)
4.13.2-3· all · bookwormFixed · Fixed:
4.13.1-1dsa · junit4 · debian · bookworm; dsa · junit4 · debian · 12
4.13.2-3· all · bookwormFixed · Fixed:
4.13.1-1dsa · junit4 · debian · bookworm; dsa · junit4 · debian · 12
- [junit4-doc]Fixed
Source package: [junit4]
Details (2)
4.13.2-3· all · bookwormFixed · Fixed:
4.13.1-1dsa · junit4 · debian · bookworm; dsa · junit4 · debian · 12
4.13.2-3· all · bookwormFixed · Fixed:
4.13.1-1dsa · junit4 · debian · bookworm; dsa · junit4 · debian · 12
[Debian 13 (Trixie)]
- [junit4]Fixed
Details (2)
4.13.2-5· all · trixieFixed · Fixed:
4.13.1-1dsa · junit4 · debian · 13
4.13.2-5· all · trixieFixed · Fixed:
4.13.1-1dsa · junit4 · debian · 13
- [junit4-doc]Fixed
Source package: [junit4]
Details (2)
4.13.2-5· all · trixieFixed · Fixed:
4.13.1-1dsa · junit4 · debian · 13
4.13.2-5· all · trixieFixed · Fixed:
4.13.1-1dsa · junit4 · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2020-15250]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2020-15250]
- [https://osv.dev/vulnerability/DLA-2426-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2020-15250]
- [https://osv.dev/vulnerability/USN-4731-1]
- [https://security-tracker.debian.org/tracker/CVE-2020-15250]
- [https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-15250.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1678.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]