CVE-2020-15250Information disclosure in JUnit4
- 4.4MediumCVSS base score
- 1.7%Exploitation in 30 daysEPSS · top 22% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 4 months later
· 4 months later
Published
- 6 years later
· 6 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium4.4 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N |
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 1.7% · top 22% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.4.
Affected products
- affected < 4.13.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenjunit:junitGHSA-269g-pwp5-87pp (opens in a new tab)
References
References39
- https://github.com/junit-team/junit4/security/advisories/GHSA-269g-pwp5-87pp (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/junit-team/junit4/commit/610155b8c22138329f0723eec22521627dbc52ae (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/junit-team/junit4/blob/7852b90cfe1cea1e0cdaa19d490c83f0d8684b50/doc/ReleaseNotes4.13.1.md (opens in a new tab)x_refsource_MISCx_transferred
- https://junit.org/junit4/javadoc/4.13/org/junit/rules/TemporaryFolder.html (opens in a new tab)x_refsource_MISCx_transferred
- [creadur-dev] 20201013 [jira] [Created] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20201014 [jira] [Commented] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-commits] 20201014 [creadur-whisker] branch master updated: Update junit to fix CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20201014 [jira] [Assigned] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-commits] 20201014 [creadur-tentacles] branch master updated: Update junit to fix CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20201014 [jira] [Updated] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20201014 [jira] [Closed] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-commits] 20201014 [creadur-rat] 01/02: RAT-277: Update junit to fix CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://github.com/junit-team/junit4/issues/1676 (opens in a new tab)x_refsource_MISCx_transferred
- [debian-lts-announce] 20201101 [SECURITY] [DLA 2426-1] junit4 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pdfbox-dev] 20201115 ossindex-maven-plugin and build issue (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [turbine-commits] 20210203 svn commit: r1886168 - in /turbine/core/trunk: ./ conf/ conf/test/ src/java/org/apache/turbine/services/urlmapper/ src/test/org/apache/turbine/services/urlmapper/ src/test/org/apache/turbine/services/urlmapper/model/ xdocs/howto/ (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210406 [GitHub] [pulsar] lhotari opened a new pull request #10147: [Security] Upgrade junit version to 4.13.1 to resolve CVE-2020-15250 and fix test dependency leak (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210413 [GitHub] [pulsar] lhotari removed a comment on pull request #10147: [Security] Upgrade junit version to 4.13.1 to resolve CVE-2020-15250 and fix test dependency leak (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210413 [GitHub] [pulsar] lhotari commented on pull request #10147: [Security] Upgrade junit version to 4.13.1 to resolve CVE-2020-15250 and fix test dependency leak (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210414 [GitHub] [pulsar] lhotari commented on pull request #10147: [Security] Upgrade junit version to 4.13.1 to resolve CVE-2020-15250 and fix test dependency leak (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210414 [GitHub] [pulsar] lhotari removed a comment on pull request #10147: [Security] Upgrade junit version to 4.13.1 to resolve CVE-2020-15250 and fix test dependency leak (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210415 [GitHub] [pulsar] lhotari removed a comment on pull request #10147: [Security] Upgrade junit version to 4.13.1 to resolve CVE-2020-15250 and fix test dependency leak (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210415 [GitHub] [pulsar] lhotari commented on pull request #10147: [Security] Upgrade junit version to 4.13.1 to resolve CVE-2020-15250 and fix test dependency leak (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210415 [GitHub] [pulsar] eolivelli merged pull request #10147: [Security] Upgrade junit version to 4.13.1 to resolve CVE-2020-15250 and fix test dependency leak (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210415 [pulsar] branch master updated: [Security] Upgrade junit version to 4.13.1 to resolve CVE-2020-15250 and fix test dependency leak (#10147) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-commits] 20210621 [creadur-rat] 02/13: RAT-277: Update junit to fix CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [portals-pluto-dev] 20210714 [jira] [Closed] (PLUTO-790) Upgrade to JUnit 4.13.1 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [portals-pluto-scm] 20210714 [portals-pluto] branch master updated: PLUTO-790 Upgrade to JUnit 4.13.1 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [portals-pluto-dev] 20210714 [jira] [Created] (PLUTO-790) Upgrade to JUnit 4.13.1 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [knox-dev] 20211004 [jira] [Created] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [knox-dev] 20211004 [GitHub] [knox] zeroflag opened a new pull request #505: KNOX-2674 - Upgrade junit to 4.13.2 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [knox-dev] 20211004 [jira] [Work logged] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [knox-dev] 20211004 [GitHub] [knox] zeroflag commented on pull request #505: KNOX-2674 - Upgrade junit to 4.13.2 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [knox-dev] 20211008 [jira] [Commented] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [knox-commits] 20211008 [knox] branch master updated: KNOX-2674 - Upgrade junit to 4.13.2 due to CVE-2020-15250 (#505) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [knox-dev] 20211008 [jira] [Resolved] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [knox-dev] 20211008 [jira] [Work logged] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [knox-dev] 20211008 [GitHub] [knox] smolnar82 merged pull request #505: KNOX-2674 - Upgrade junit to 4.13.2 due to CVE-2020-15250 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.oracle.com/security-alerts/cpuapr2022.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2020-1400 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-269g-pwp5-87pp (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2020-15250)Record last updated .