Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2020-15250

MEDIUM 4.4EPSS 78%

Information disclosure in JUnit4

Also known as GHSA-269g-pwp5-87pp

Mitigation

  • Upgrade junit:junit to 4.13.1 or later.

Who should check

  • Projects that depend on Maven package junit:junit (>= 4.7, < 4.13.1)
  • Anyone running junit-team junit4 < 4.13.1

Vulnerability facts

Affected
junit:junit >= 4.7, < 4.13.1
Fixed in
4.13.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
4.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
1.70% chance of exploitation in 30 days (percentile 78, 2026-11-26)
CWE
CWE-200
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Maven junit:junit>= 4.7, < 4.13.14.13.1osv
junit-team junit4< 4.13.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2020-15250. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-15250.md
Affected: junit:junit >= 4.7, < 4.13.1
Fixed in: 4.13.1

Steps:
1. Search this machine and project for junit:junit (Maven), junit-team junit4: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

Other

FAQ

Is CVE-2020-15250 being exploited?

There is no confirmed exploitation: CVE-2020-15250 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.70% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2020-15250?

Medium: CVSS 4.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2020-15250?

junit:junit >= 4.7, < 4.13.1.

Is there a fix for CVE-2020-15250?

Yes. Fixed in 4.13.1. Upgrade junit:junit to 4.13.1 or later.

How do I check if I'm affected by CVE-2020-15250?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors