Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Junit | Junit4 | >= 4.7, < 4.13.1 |
| Debian | Debian Linux | 9.0 |
| Apache | Pluto | < 3.1.1 |
| Oracle | Communications Cloud Native Core Policy | 1.14.0 |
Related Weaknesses (CWE)
References
- https://github.com/junit-team/junit4/blob/7852b90cfe1cea1e0cdaa19d490c83f0d8684bRelease NotesThird Party Advisory
- https://github.com/junit-team/junit4/commit/610155b8c22138329f0723eec22521627dbcPatchThird Party Advisory
- https://github.com/junit-team/junit4/issues/1676Issue TrackingThird Party Advisory
- https://github.com/junit-team/junit4/security/advisories/GHSA-269g-pwp5-87ppExploitThird Party Advisory
- https://junit.org/junit4/javadoc/4.13/org/junit/rules/TemporaryFolder.htmlVendor Advisory
- https://lists.apache.org/thread.html/r01110833b63616ddbef59ae4e10c0fbd0060f0a512
- https://lists.apache.org/thread.html/r09cfbb5aedd76023691bbce9ca4ce2e16bb07dd375
- https://lists.apache.org/thread.html/r1209986f79359b518d09513ff05a88e5b3c398540e
- https://lists.apache.org/thread.html/r29d703d1986d9b871466ff24082a1828ac8ad27bb0
- https://lists.apache.org/thread.html/r2b78f23bc2711a76a7fc73ad67b7fcd6817c5cfcce
- https://lists.apache.org/thread.html/r30f502d2f79e8d635361adb8108dcbb73095163fcb
- https://lists.apache.org/thread.html/r500517c23200fb2fdb0b82770a62dd6c88b3521cfb
- https://lists.apache.org/thread.html/r5f8841507576f595bb783ccec6a7cb285ea90d4e6f
- https://lists.apache.org/thread.html/r687f489b10b0d14e46f626aa88476545e1a2600b24
- https://lists.apache.org/thread.html/r717877028482c55acf604d7a0106af4ca05da4208c
FAQ
What is CVE-2020-15250?
CVE-2020-15250 is a vulnerability with a CVSS score of 4.4 (MEDIUM). 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 betw...
How severe is CVE-2020-15250?
CVE-2020-15250 has been rated MEDIUM with a CVSS base score of 4.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2020-15250?
Check the references section above for vendor advisories and patch information. Affected products include: Junit Junit4, Debian Debian Linux, Apache Pluto, Oracle Communications Cloud Native Core Policy.