PT-2020-5517 · Junit+4 · Junit4+4

Published

2020-10-12

·

Updated

2022-06-11

·

CVE-2020-15250

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions JUnit4 versions 4.7 through 4.13.1
Description The issue is related to a local information disclosure vulnerability in the test rule TemporaryFolder of JUnit4. On Unix-like systems, the system's temporary directory is shared between all users, making files and directories written into this directory readable by other users on the same system. This vulnerability impacts JUnit tests that write sensitive information, such as API keys or passwords, into the temporary folder and execute in an environment with other untrusted users.
Recommendations For Java 1.7 and higher users: update to version 4.13.1 to fix the vulnerability. For Java 1.6 and lower users: no patch is available, specify the java.io.tmpdir system environment variable to a directory that is exclusively owned by the executing user as a workaround. As a temporary workaround, consider restricting access to the temporary folder to minimize the risk of exploitation.

Exploit

Fix

Information Disclosure

Incorrect Permission

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2022-2035
AZL-41745
BDU:2021-01029
CVE-2020-15250
DLA-2426-1
GHSA-269G-PWP5-87PP
MGASA-2020-0403
OESA-2021-1053
USN-4731-1

Affected Products

Alt Linux
Astra Linux
Junit4
Linuxmint
Ubuntu