Information disclosure in JUnit4
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 4.13.1
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- junit-team junit4
fixed in 4.13.1
- junit:junitMaven
From 4.7 · fixed in 4.13.1
References 25
GitHub · junit-team/junit4
lists.apache.org
- thread.html/r5f8841507576f595bb783ccec6a7cb285ea90d4e6f5043eae0e61a41@<dev.creadur.apache.org>
- thread.html/rbaec90e699bc7c7bd9a053f76707a36fda48b6d558f31dc79147dbf9@<dev.creadur.apache.org>
- thread.html/r717877028482c55acf604d7a0106af4ca05da4208c708fb157b53672@<commits.creadur.apache.org>
- thread.html/rb2771949c676ca984e58a5cd5ca79c2634dee1945e0406e48e0f8457@<dev.creadur.apache.org>
- thread.html/rde385b8b53ed046600ef68dd6b4528dea7566aaddb02c3e702cc28bc@<commits.creadur.apache.org>
- thread.html/rc49cf1547ef6cac1be4b3c92339b2cae0acacf5acaba13cfa429a872@<dev.creadur.apache.org>
- thread.html/r500517c23200fb2fdb0b82770a62dd6c88b3521cfb01cfd0c76e3f8b@<dev.creadur.apache.org>
- thread.html/r95f8ef60c4b3a5284b647bb3132cda08e6fadad888a66b84f49da0b0@<commits.creadur.apache.org>
- thread.html/ra1bdb9efae84794e8ffa2f8474be8290ba57830eefe9714b95da714b@<dev.pdfbox.apache.org>
- thread.html/rb33212dab7beccaf1ffef9b88610047c644f644c7a0ebdc44d77e381@<commits.turbine.apache.org>
- thread.html/raebf13f53cd5d23d990712e3d11c80da9a7bae94a6284050f148ed99@<commits.pulsar.apache.org>
- thread.html/r01110833b63616ddbef59ae4e10c0fbd0060f0a51206defd4cb4d917@<commits.pulsar.apache.org>
- thread.html/rde8e70b95c992378e8570e4df400c6008a9839eabdfb8f800a3e5af6@<commits.pulsar.apache.org>
- thread.html/rdef7d1380c86e7c0edf8a0f89a2a8db86fce5e363457d56b722691b4@<commits.pulsar.apache.org>
- thread.html/rdbdd30510a7c4d0908fd22075c02b75bbc2e0d977ec22249ef3133cb@<commits.pulsar.apache.org>
- thread.html/rea812d8612fdc46842a2a57248cad4b01ddfdb1e9b037c49e68fdbfb@<commits.pulsar.apache.org>
- thread.html/rf797d119cc3f51a8d7c3c5cbe50cb4524c8487282b986edde83a9467@<commits.pulsar.apache.org>
- thread.html/reb700e60b9642eafa4b7922bfee80796394135aa09c7a239ef9f7486@<commits.pulsar.apache.org>
- thread.html/rf2ec93f4ca9a97d1958eb4a31b1830f723419ce9bf2018a6e5741d5b@<commits.pulsar.apache.org>