CVE-2020-15250
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.
Description as published by the source, in English.
Key facts
- Published
- 2020-10-12
- Last modified
- 2026-10-07
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
1.7 %
higher than 75 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Apache | Pluto | < 3.1.1 | Affected |
| Debian | Debian Linux | 9.0 | Affected |
| Junit | Junit4 | ≥ 4.7, < 4.13.1 | Affected |
| Oracle | Communications Cloud Native Core Policy | 1.14.0 | Affected |
Weakness type
-
CWE-732: Incorrect Permission Assignment for Critical Resource
The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.
-
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1007: System Service Discovery
- T1016: System Network Configuration Discovery
- T1018: Remote System Discovery
- T1033: System Owner/User Discovery
- T1036.005: Match Legitimate Resource Name or Location
- T1046: Network Service Discovery
- T1049: System Network Connections Discovery
- T1057: Process Discovery
- T1069: Permission Groups Discovery
- T1082: System Information Discovery
- T1083: File and Directory Discovery
- T1087: Account Discovery
- T1111: Multi-Factor Authentication Interception
- T1120: Peripheral Device Discovery
- T1124: System Time Discovery
- T1134.001: Token Impersonation/Theft
- T1135: Network Share Discovery
- T1217: Browser Information Discovery
- T1505.005: Terminal Services DLL
- T1548: Abuse Elevation Control Mechanism
References
- https://github.com/junit-team/junit4/blob/7852b90cfe1cea1e0cdaa19d490c83f0d8684b50/doc/Re…
- https://github.com/junit-team/junit4/commit/610155b8c22138329f0723eec22521627dbc52ae
- https://github.com/junit-team/junit4/issues/1676
- https://github.com/junit-team/junit4/security/advisories/GHSA-269g-pwp5-87pp
- https://junit.org/junit4/javadoc/4.13/org/junit/rules/TemporaryFolder.html
- https://lists.debian.org/debian-lts-announce/2020/11/msg00003.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://github.com/junit-team/junit4/blob/7852b90cfe1cea1e0cdaa19d490c83f0d8684b50/doc/Re…
- https://github.com/junit-team/junit4/commit/610155b8c22138329f0723eec22521627dbc52ae
- https://github.com/junit-team/junit4/issues/1676
- https://github.com/junit-team/junit4/security/advisories/GHSA-269g-pwp5-87pp
- https://junit.org/junit4/javadoc/4.13/org/junit/rules/TemporaryFolder.html
- https://lists.debian.org/debian-lts-announce/2020/11/msg00003.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://lists.apache.org/thread.html/r01110833b63616ddbef59ae4e10c0fbd0060f0a51206defd4cb…
- https://lists.apache.org/thread.html/r09cfbb5aedd76023691bbce9ca4ce2e16bb07dd37554a17efc1…
- https://lists.apache.org/thread.html/r1209986f79359b518d09513ff05a88e5b3c398540e775edea76…
- https://lists.apache.org/thread.html/r29d703d1986d9b871466ff24082a1828ac8ad27bb0965a93a38…
- https://lists.apache.org/thread.html/r2b78f23bc2711a76a7fc73ad67b7fcd6817c5cfccefd6f30a4f…
- https://lists.apache.org/thread.html/r30f502d2f79e8d635361adb8108dcbb73095163fcbd776ee798…
Related at Berigo
Articles
-
Hacking group says an unpatched PeopleSoft flaw gave it FBI employee data
Same product
2026-09-26
ShinyHunters claims it used an unpatched Oracle PeopleSoft flaw to reach FBI systems and take between two and three terabytes on employees and job ap…
-
Attackers are exploiting the plug-in in front of Oracle WebLogic
Same product
2026-08-25
CISA added CVE-2026-21962 to its Known Exploited Vulnerabilities Catalog on 24 August, citing evidence of active exploitation. The flaw sits in Oracl…
-
The crypto library behind Python now ships quantum-resistant algorithms
Same product
2026-08-18
Trail of Bits has added ML-KEM and ML-DSA to pyca/cryptography, funded by the Sovereign Tech Agency. The library is the eleventh most downloaded pack…
-
Attacks on GeoServer began within hours of the flaw becoming public
Same product
2026-08-17
A GeoServer vulnerability was made public on X on 12 August 2026, before the project had a fix ready. watchTowr states that exploitation attempts beg…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.