Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. junit/junit
  4. ›
  5. CVE-2020-15250

CVE-2020-15250: Information Exposure

October 12, 2020 (updated November 18, 2021)

In JUnit4 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.

References

  • github.com/junit-team/junit4/issues/1676
  • junit.org/junit4/javadoc/4.13/org/junit/rules/TemporaryFolder.html
  • nvd.nist.gov/vuln/detail/CVE-2020-15250

Code Behaviors & Features

Detect and mitigate CVE-2020-15250 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.7 before 4.13.1

Fixed versions

  • 4.13.1

Solution

Upgrade to version 4.13.1 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

maven/junit/junit/CVE-2020-15250.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:22 +0000.