Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False Positive on junit-4.13.1.jar: CVE-2020-15250 #2959

Closed
bjansen opened this issue Nov 18, 2020 · 2 comments
Closed

False Positive on junit-4.13.1.jar: CVE-2020-15250 #2959

bjansen opened this issue Nov 18, 2020 · 2 comments

Comments

@bjansen
Copy link
Contributor

bjansen commented Nov 18, 2020

JUnit is usually used as a test dependency, but I have this module that contains a JUnit rule to be used by other modules, so in this case JUnit is configured as a compile dependency:

<dependency>
	<groupId>junit</groupId>
	<artifactId>junit</artifactId>
	<version>4.13.1</version>
	<scope>compile</scope>
</dependency>

CVE-2020-15250 is supposed to affect versions up to 4.13.1 excluded, yet since yesterday dependency-check started complaining that the latest version is also affected by the CVE:

09:43:03,020 [main] [ERROR] One or more dependencies were identified with vulnerabilities: 
09:43:03,023 [main] [ERROR]
09:43:03,025 [main] [ERROR] junit-4.13.1.jar: CVE-2020-15250
09:43:03,028 [main] [ERROR]
09:43:03,030 [main] [ERROR] See the dependency-check report for more details.

I see that the NVD page was updated yesterday (Nov 16), so it might explain the sudden error.

@bjansen
Copy link
Contributor Author

bjansen commented Nov 18, 2020

Actually it looks like Sonatype's OSSIndex is at fault here, they seem to include 4.13.1 instead of excluding it:

From the generated HTML report:

References:
OSSINDEX - [CVE-2020-15250] In JUnit4 from version 4.7 and before 4.13.1, the test rule TemporaryFolder cont...
Vulnerable Software & Versions (OSSINDEX):
cpe:2.3:a :junit:junit:4.13.1:::::::*

image

@bjansen
Copy link
Contributor Author

bjansen commented Nov 18, 2020

All right, there are already several issues opened in the OSSIndex tracker, I'm closing this one :)

OSSIndex/vulns#125
OSSIndex/vulns#126
OSSIndex/vulns#127

@bjansen bjansen closed this as completed Nov 18, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant