-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CVE-2022-45688 wrongly still reported for pkg:maven/org.json/json@20230227 due to a bug #5545
Comments
As this bug creates a false positive, why not add it to the hosted suppression file until it is fixed to prevent any confusion? |
It seems ( Deliberate change commit ( main:
original commit on branch outside repo:
|
No that does not have to be revisited.... it 'fixes' it for you because that original commit was wrong and the current suppression is valid. The suppression rules is meant to suppress it for anything that is NOT org.json/json By restoring the original erroneous regEx you are even suppressing it for ANY version of org.json/json (in addition to anything that is not org.json/json), as the packageURL of org.json/json has an @-sign after json, not a forward slash. |
note that in the meantime https://nvd.nist.gov/vuln/detail/CVE-2022-45688#VulnChangeHistorySection fixed (changed) the |
Same false positive shows up also in version 20230618. Will this be fixed anytime in the future? |
Intention is definitely to get a structural fix for this in the future. I've taking a few looks at it, but it appears to not be an easy fix. |
…dencyName for exactMatch Fixes #5545
Right, somehow missed flagging these as resolved |
Describe the bug
As spotted on
stleary/JSON-java#720 (comment)
CVE-2022-45688 is still reported for
org.json:json
version 20230227A quick'n'dirty evalution with debug logging indicates that it is because the library version is not properly evaluated, leading to comparing the vulnerable software ranges to a version '*' of the library
Note: the NVD entry is currently incorrect regarding the version range, that should've been
up to (excluding) 20230227
, but nevertheless the CVE should not have surfaced on reports for version 20230227Version of dependency-check used
The problem occurs using version 8.1.1 as well as 8.1.2 of the maven plugin
Log file
When reporting errors, 99% of the time log file output is required. Please post the log file as a gist and provide a link in the new issue.
To Reproduce
Steps to reproduce the behavior:
mvn org.owasp:dependency-check-maven:8.1.2:check
on this projectExpected behavior
CVE not reported, as the version of the dependency is beyond the vulnerable version range
The text was updated successfully, but these errors were encountered: