Read the docs
TI-2020-12022 Aliases CVE-2020-15250GHSA-269g-pwp5-87pp

Information disclosure in JUnit4

Priority LOW 28CWE-200Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Partial Red Hat: 1 fixed, 2 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01695 77th percentileScored 2026-11-08
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial junit4 (junit-team): 4.13.1junit:junit (Maven): 4.13.1Red Hat: 1 advisoryRed Hat: 1 fixed, 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
junit-teamjunit4before 4.13.14.13.1Patch availableCNA
—junit:junit (Maven)4.7 to before 4.13.14.13.1Patch availableGHSA-269g-pwp5-87pp
  • junit4 Vendorjunit-team Affected before 4.13.1 Fixed in 4.13.1 Patch available CNA
  • junit:junit (Maven) Vendor— Affected 4.7 to before 4.13.1 Fixed in 4.13.1 Patch available GHSA-269g-pwp5-87pp

CPE configurations NVD · 4

CPEVersionsRoleVendor
cpe:2.3:a:junit:junit4:*:*:*:*:*:*:*:*4.7 to before 4.13.1VulnerableJunit
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
cpe:2.3:a:apache:pluto:*:*:*:*:*:*:*:*before 3.1.1VulnerableApache
cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.14.0:*:*:*:*:*:*:*1.14.0VulnerableOracle
  • cpe:2.3:a:junit:junit4:*:*:*:*:*:*:*:* Versions 4.7 to before 4.13.1 Vulnerable ·Junit
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
  • cpe:2.3:a:apache:pluto:*:*:*:*:*:*:*:* Versions before 3.1.1 Vulnerable ·Apache
  • cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.14.0:*:*:*:*:*:*:* Versions 1.14.0 Vulnerable ·Oracle

Remediation

  • Fix · CNA junit4 (junit-team) Fixed in 4.13.1
  • Fix · GHSA-269g-pwp5-87pp junit:junit (Maven) Fixed in 4.13.1 Advisory →

Red Hat 1 advisory

  • RHSA-2022:5532 Released 2022-07-07 · Red Hat rating Important
    Red Hat Fuse 7.11.0 release and security update
    • Red Hat Fuse 7.11

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Fuse 7.11Fixed RHSA-2022:5532
Not affected: 4 products
  • Red Hat Data Grid 8
  • Red Hat Enterprise Linux 6
  • Red Hat JBoss Enterprise Application Platform 6
  • Red Hat JBoss Fuse 6

Timeline

  1. 2026-10-02 Threatist record created from CVE-2020-15250
  2. 2026-10-03 Alias added: GHSA-269g-pwp5-87pp
  3. 2026-10-07 CISA SSVC decision points changed

References

Other 65

  • TI-2025-33096 JUnit OpenTestReportGeneratingListener can leak Git credentials CVSS 3.1MEDIUM 5.8

Sources