CVE-2020-15250 Information disclosure in JUnit4
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
25 packages: 21 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/junit4(Ubuntu 14.04) | = 4.11-2; All versions | No fix listed | No fix yet |
| alpine/junit(Alpine v3.13) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.14) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.15) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.16) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.17) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.18) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.19) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.20) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.21) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.22) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.23) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| alpine/junit(Alpine v3.24) | < 4.13.1-r0 | 4.13.1-r0 | Fixed |
| apache pluto | < 3.1.1 | 3.1.1 | Fixed |
| debian/junit4(Debian 12) | < 4.13.1-1 | 4.13.1-1 | Fixed |
| debian/junit4(Debian 13) | < 4.13.1-1 | 4.13.1-1 | Fixed |
| debian/junit4(Debian 14) | < 4.13.1-1 | 4.13.1-1 | Fixed |
| junit/junit(Maven) | = 4.7; = 4.8; = 4.8.1; = 4.8.2 +15 more | 4.13.1 | Fixed |
| junit4 | >= 4.7, < 4.13.1 | 4.13.1 | Fixed |
| ubuntu/junit4(Ubuntu 16.04) | < 4.12-4ubuntu1.1; = 4.12-2ubuntu1; = 4.12-4ubuntu1 | 4.12-4ubuntu1.1 | Fixed |
| ubuntu/junit4(Ubuntu 18.04) | < 4.12-8~18.04.1; = 4.12-5; = 4.12-6; = 4.12-8~18.04 | 4.12-8~18.04.1 | Fixed |
| ubuntu/junit4(Ubuntu 20.04) | < 4.12-8ubuntu0.20.04.1; = 4.12-8 | 4.12-8ubuntu0.20.04.1 | Fixed |
| debian linux | = 9.0 | No fix listed | Versions listed |
| junit-team junit4 | = < 4.13.1 | No fix listed | Versions listed |
| oracle communications cloud native core policy | = 1.14.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| junit/junit(Maven) | >= 4.7, < 4.13.1 | 4.13.1 |
| junit/junit(Maven) | = 4.10 | No fix listed |
| junit/junit(Maven) | = 4.11 | No fix listed |
| junit/junit(Maven) | = 4.11-beta-1 | No fix listed |
| junit/junit(Maven) | = 4.12 | No fix listed |
| junit/junit(Maven) | = 4.12-beta-1 | No fix listed |
| junit/junit(Maven) | = 4.12-beta-2 | No fix listed |
| junit/junit(Maven) | = 4.12-beta-3 | No fix listed |
| junit/junit(Maven) | = 4.13 | No fix listed |
| junit/junit(Maven) | = 4.13-beta-1 | No fix listed |
| junit/junit(Maven) | = 4.13-beta-2 | No fix listed |
| junit/junit(Maven) | = 4.13-beta-3 | No fix listed |
| junit/junit(Maven) | = 4.13-rc-1 | No fix listed |
| junit/junit(Maven) | = 4.13-rc-2 | No fix listed |
| junit/junit(Maven) | = 4.7 | No fix listed |
| junit/junit(Maven) | = 4.8 | No fix listed |
| junit/junit(Maven) | = 4.8.1 | No fix listed |
| junit/junit(Maven) | = 4.8.2 | No fix listed |
| junit/junit(Maven) | = 4.9 | No fix listed |
| debian/junit4(Debian:12) | < 4.13.1-1 | 4.13.1-1 |
| debian/junit4(Debian:13) | < 4.13.1-1 | 4.13.1-1 |
| debian/junit4(Debian:14) | < 4.13.1-1 | 4.13.1-1 |
| alpine/junit(Alpine:v3.13) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.14) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.15) | < 4.13.1-r0 | 4.13.1-r0 |
Show 25 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/junit(Alpine:v3.16) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.17) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.18) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.19) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.20) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.21) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.22) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.23) | < 4.13.1-r0 | 4.13.1-r0 |
| alpine/junit(Alpine:v3.24) | < 4.13.1-r0 | 4.13.1-r0 |
| junit-team junit4 | = < 4.13.1 | No fix listed |
| junit4 | >= 4.7, < 4.13.1 | 4.13.1 |
| debian linux | = 9.0 | No fix listed |
| apache pluto | < 3.1.1 | 3.1.1 |
| oracle communications cloud native core policy | = 1.14.0 | No fix listed |
| ubuntu/junit4(Ubuntu:14.04) | All versions | No fix listed |
| ubuntu/junit4(Ubuntu:14.04) | = 4.11-2 | No fix listed |
| ubuntu/junit4(Ubuntu:16.04) | < 4.12-4ubuntu1.1 | 4.12-4ubuntu1.1 |
| ubuntu/junit4(Ubuntu:16.04) | = 4.12-2ubuntu1 | No fix listed |
| ubuntu/junit4(Ubuntu:16.04) | = 4.12-4ubuntu1 | No fix listed |
| ubuntu/junit4(Ubuntu:18.04) | < 4.12-8~18.04.1 | 4.12-8~18.04.1 |
| ubuntu/junit4(Ubuntu:18.04) | = 4.12-5 | No fix listed |
| ubuntu/junit4(Ubuntu:18.04) | = 4.12-6 | No fix listed |
| ubuntu/junit4(Ubuntu:18.04) | = 4.12-8~18.04 | No fix listed |
| ubuntu/junit4(Ubuntu:20.04) | < 4.12-8ubuntu0.20.04.1 | 4.12-8ubuntu0.20.04.1 |
| ubuntu/junit4(Ubuntu:20.04) | = 4.12-8 | No fix listed |
References
- github.com exploit issue-tracking third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking release-notes third-party-advisory
- junit.org issue-tracking vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking third-party-advisory
- lists.apache.org issue-tracking
- [debian-lts-announce] 20201101 [SECURITY] [DLA 2426-1] junit4 security update mailing-list third-party-advisory
- lists.apache.org issue-tracking
- lists.apache.org issue-tracking
- lists.apache.org issue-tracking
- lists.apache.org issue-tracking
- lists.apache.org
- lists.apache.org issue-tracking
- lists.apache.org issue-tracking
- lists.apache.org issue-tracking
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- www.oracle.com patch third-party-advisory
- github.com
- github.com product
- Debian Security Tracker CVE-2020-15250 vendor-advisory
- security.alpinelinux.org vendor-advisory
- [creadur-dev] 20201013 [jira] [Created] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) mailing-list
- [creadur-dev] 20201014 [jira] [Commented] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) mailing-list
- [creadur-commits] 20201014 [creadur-whisker] branch master updated: Update junit to fix CVE-2020-15250 mailing-list
- [creadur-dev] 20201014 [jira] [Assigned] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) mailing-list
- [creadur-commits] 20201014 [creadur-tentacles] branch master updated: Update junit to fix CVE-2020-15250 mailing-list
- [creadur-dev] 20201014 [jira] [Updated] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) mailing-list
- [creadur-dev] 20201014 [jira] [Closed] (RAT-277) Update junit in all Creadur projects in order to fix CVE-2020-15250 (Low severity) mailing-list
- [creadur-commits] 20201014 [creadur-rat] 01/02: RAT-277: Update junit to fix CVE-2020-15250 mailing-list
- [pdfbox-dev] 20201115 ossindex-maven-plugin and build issue mailing-list
- [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/ mailing-list
- [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 mailing-list
- [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 mailing-list
- [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 mailing-list
- [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 mailing-list
- [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 mailing-list
- [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 mailing-list
- [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 mailing-list
- [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 mailing-list
- [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) mailing-list
- [creadur-commits] 20210621 [creadur-rat] 02/13: RAT-277: Update junit to fix CVE-2020-15250 mailing-list
- [portals-pluto-dev] 20210714 [jira] [Closed] (PLUTO-790) Upgrade to JUnit 4.13.1 due to CVE-2020-15250 mailing-list
- [portals-pluto-scm] 20210714 [portals-pluto] branch master updated: PLUTO-790 Upgrade to JUnit 4.13.1 due to CVE-2020-15250 mailing-list
- [portals-pluto-dev] 20210714 [jira] [Created] (PLUTO-790) Upgrade to JUnit 4.13.1 due to CVE-2020-15250 mailing-list
- [knox-dev] 20211004 [jira] [Created] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 mailing-list
- [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 mailing-list
- [knox-dev] 20211004 [jira] [Work logged] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 mailing-list
- [knox-dev] 20211004 [GitHub] [knox] zeroflag commented on pull request #505: KNOX-2674 - Upgrade junit to 4.13.2 due to CVE-2020-15250 mailing-list
- [knox-dev] 20211008 [jira] [Commented] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 mailing-list
- [knox-commits] 20211008 [knox] branch master updated: KNOX-2674 - Upgrade junit to 4.13.2 due to CVE-2020-15250 (#505) mailing-list
- [knox-dev] 20211008 [jira] [Resolved] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 mailing-list
- [knox-dev] 20211008 [jira] [Work logged] (KNOX-2674) Upgrade junit to 4.13.2 due to CVE-2020-15250 mailing-list
- [knox-dev] 20211008 [GitHub] [knox] smolnar82 merged pull request #505: KNOX-2674 - Upgrade junit to 4.13.2 due to CVE-2020-15250 mailing-list
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking
- ENISA EUVD EUVD-2020-1400 third-party-advisory