Vulnerability in junit4
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as DEBIAN-CVE-2020-15250 has been found in junit4.
Attackers can target a specific entry point like java.io.tmpdir over the network to misuse the product.
Confidential information can be exposed externally.
What to do: upgrade junit4 to 4.13.1 or later.
If unsure, ask your IT team or search "junit4 DEBIAN-CVE-2020-15250" on the vendor's site.
DEBIAN-CVE-2020-15250 (junit4)
Attack vector: local / unauthenticated
Attack surface: java.io.tmpdir
Patched: 4.13.1 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in junit4. Attackers reach the vulnerable code path via java.io.tmpdir without authentication.
Check the vendor advisory for the affected versions of junit4. Attack surface: java.io.tmpdir.
Severity: ?. Confidential information can be exposed externally.
Update to 4.13.1.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'junit4' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'junit4' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
junit4を grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade junit4 to 4.13.1ステージング環境で 4.13.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12junit4 |
< 4.13.1-1→ 4.13.1-1 |
4.13.1-1 |
| Debian:13junit4 |
< 4.13.1-1→ 4.13.1-1 |
4.13.1-1 |
| Debian:14junit4 |
< 4.13.1-1→ 4.13.1-1 |
4.13.1-1 |
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org