cve.bz

CVE-2020-15250

5.5 mediumExploit referenceEPSS 1.7%Fix available

Medium (5.5). EPSS 1.7% estimated probability of exploitation activity in the next 30 days. Fixed in junit:junit 4.13.1.

On this page
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.

Severity

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
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-732 Incorrect Permission Assignment for Critical Resource
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-15250 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-15250?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-15250?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-15250 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
junit:junit4from 4.7 before 4.13.1
debian:debian_linux9.0
apache:plutobefore 3.1.1
oracle:communications_cloud_native_core_policy1.14.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-269g-pwp5-87ppMavenjunit:junit>=4.7 <4.13.14.13.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9junit44.12-4+deb9u1DLA-2426-1
Debian12, 13, 14junit44.13.1-1DEBIAN-CVE-2020-15250
Ubuntu14.04:LTSjunit4no fix listedUBUNTU-CVE-2020-15250
Ubuntu16.04:LTSjunit44.12-4ubuntu1.1UBUNTU-CVE-2020-15250 USN-4731-1
Ubuntu18.04:LTSjunit44.12-8~18.04.1UBUNTU-CVE-2020-15250 USN-4731-1
Ubuntu20.04:LTSjunit44.12-8ubuntu0.20.04.1UBUNTU-CVE-2020-15250 USN-4731-1
Alpinev3.13, v3.14, v3.15 and 9 morejunit4.13.1-r0ALPINE-CVE-2020-15250
Azure Linux3junit4.13-7AZL-41745

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Fuse 7.11junit4Fixed 2022-07-07RHSA-2022:5532
Red Hat Data Grid 8infinispan-server-testdriver-junit4Not affected
Red Hat Enterprise Linux 6junit4Not affected
Red Hat Enterprise Linux 7junitOut of support scope
Red Hat Enterprise Linux 8eclipse:rhel8/junitFix deferred
Red Hat JBoss Enterprise Application Platform 6powermock-module-junit4Not affected
Red Hat JBoss Enterprise Application Platform 6powermock-module-junit4-commonNot affected
Red Hat JBoss Enterprise Application Platform 6surefire-junit4Not affected
Red Hat JBoss Fuse 6common-junit4Not affected
Red Hat JBoss Fuse 6common-junit48Not affected
Red Hat JBoss Fuse 6jmock-junit4Not affected
Red Hat JBoss Fuse 6junit4-antNot affected
Red Hat JBoss Fuse 6pax-exam-junit4Not affected
Red Hat JBoss Fuse 6powermock-module-junit4Not affected
Red Hat JBoss Fuse 6powermock-module-junit4-commonNot affected
Red Hat JBoss Fuse 6surefire-junit4Not affected
Red Hat JBoss Fuse 6surefire-junit47Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-15250.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11), CWE-200 (59).

References

Check your stackJSON