WaratekVRT Sign in

CVE-2020-15250 JUnit4

Affected softwareJUnit4
Severity5.5 Medium CVSS 3.1 3 scores
Fixed in4.13.1
WeaknessIncorrect permission assignment (CWE-732)
Published12 Oct 2020
Updated13 Nov 2026

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.

CWE-200 · Information exposure

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 6 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 1.7% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A researcher's recorded decision for this specific CVE
Finding A researcher found this CVE protected by the ARMR Filesytem read path-to-app.

Waratek research note

written 2026-11-13

Written by a Waratek engineer who reviewed this CVE. Their decision sets the status above, ahead of every automated rule except a withdrawal.

Comments

Rule Name: Filesytem read path-to-app

How to mitigate CVE-2020-15250

Upgrade JUnit4 to 4.13.1 or later. Until you can, Waratek RASP blocks exploitation with its filesystem rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

5.5 MEDIUM v3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 5.5 MEDIUM CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N NVD Primary published
CVSS 3.1 4.4 MEDIUM CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N security-advisories@github.com Secondary
CVSS 2.0 1.9 none AV:L/AC:M/Au:N/C:P/I:N/A:N NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update October 2025 ↗ CPU 2025-Q4 Oracle Fusion Middleware / Centralized Thirdparty Jars (GlassFish Server) (12.2.1.4.0, 14.1.1.0.0, 14.1.2.0.0)
Oracle Critical Patch Update January 2024 ↗ CPU 2024-Q1 Oracle Financial Services Applications / Infrastructure (Jakarta Expression Language) (14.7.0.3.0)
Oracle Critical Patch Update July 2023 ↗ CPU 2023-Q3 Oracle Siebel CRM / EAI (JSON-java) (23.5 and prior)
Oracle Critical Patch Update April 2023 ↗ CPU 2023-Q2 Oracle JD Edwards / Business Logic Infra SEC (jUnit) (Prior to 9.2.7.3)
Oracle Critical Patch Update April 2022 ↗ CPU 2022-Q2 Oracle Communications / Policy (JUnit) (1.14.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Communications Policy (JUnit) 1.14.0 1.14.0
Oracle Financial Services Applications Infrastructure (Jakarta Expression Language) 14.7.0.3.0 14.7.0.3.0
Oracle Fusion Middleware Centralized Thirdparty Jars (GlassFish Server) 12.2.1.4.0, 14.1.1.0.0, 14.1.2.0.0 12.2.1.4.0 · 14.1.1.0.0 · 14.1.2.0.0
Oracle JD Edwards Business Logic Infra SEC (jUnit) Prior to 9.2.7.3
Oracle Siebel CRM EAI (JSON-java) 23.5 and prior

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
junit:junit 4.7 4.13.1 unbounded

Products and versions

5 products, 5 version entries
SourceVendorProductSchemeAffected versions
nvd apache pluto generic < 3.1.1
nvd debian debian linux generic 9.0
osv junit junit generic ≥ 4.7 and < 4.13.1
nvd junit junit4 generic ≥ 4.7 and < 4.13.1
nvd oracle communications cloud native core policy generic 1.14.0

References

URLTags
https://github.com/junit-team/junit4/security/advisories/GHSA-269g-pwp5-87pp WEB
https://github.com/junit-team/junit4/issues/1676 WEB
https://github.com/junit-team/junit4/commit/610155b8c22138329f0723eec22521627dbc52ae WEB
https://lists.apache.org/thread.html/ra1bdb9efae84794e8ffa2f8474be8290ba57830eefe9714b95da714b@%3Cdev.pdfbox.apache.org%3E WEB
https://lists.apache.org/thread.html/raebf13f53cd5d23d990712e3d11c80da9a7bae94a6284050f148ed99@%3Ccommits.pulsar.apache.org%3E WEB
https://lists.apache.org/thread.html/rb2771949c676ca984e58a5cd5ca79c2634dee1945e0406e48e0f8457@%3Cdev.creadur.apache.org%3E WEB
https://lists.apache.org/thread.html/rb2ffe2993f4dccc48d832e1a0f1c419477781b6ea16e725ca2276dbb@%3Cdev.knox.apache.org%3E WEB
https://lists.apache.org/thread.html/rb33212dab7beccaf1ffef9b88610047c644f644c7a0ebdc44d77e381@%3Ccommits.turbine.apache.org%3E WEB
https://lists.apache.org/thread.html/rbaec90e699bc7c7bd9a053f76707a36fda48b6d558f31dc79147dbf9@%3Cdev.creadur.apache.org%3E WEB
https://lists.apache.org/thread.html/rc49cf1547ef6cac1be4b3c92339b2cae0acacf5acaba13cfa429a872@%3Cdev.creadur.apache.org%3E WEB

Timeline

Published2020-10-12By the CVE Program.
NVD record modified2026-10-07NVD's own last-modified date for this record.
Classification created2026-11-13First commit adding this CVE's research note.
Last VRT activity2026-11-13Most recent commit touching this CVE's classification, patch or rule file.