-
Notifications
You must be signed in to change notification settings - Fork 15
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
Should subset
of ANY
be considered a match
#30
Comments
jeremylong
referenced
this issue
in jeremylong/CPE-Parser
Dec 26, 2019
Agree with analysis. Let me know when you need a release. |
I'll need this released fairly soon as part of the fully resolution to ODC issue #2386. I have two more minor bugs to fix and would like to release. So within 2 weeks if you could merge PR #31 and release - that would be great. |
jeremylong
changed the title
Should
Should Dec 27, 2019
subset
be considered a matchsubset
of ALL
be considered a match
jeremylong
changed the title
Should
Should Dec 27, 2019
subset
of ALL
be considered a matchsubset
of ANY
be considered a match
v2.0.2 was released to central. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The CPE 2.3 specification does not specify matching in terms of true/false - rather it defines four relations:
equal
,disjoint
,superset
, andsubset
(see table 6-2 in the specification).The current implementation treats
equal
andsuperset
as true. However, subsets are considered false (5, 13, 15 - numbers equate to entries in table 6-2):CPE-Parser/src/main/java/us/springett/parsers/cpe/Cpe.java
Lines 618 to 627 in b90081a
This leads to a scenario where we have a
source
from the NVD for CVE-2019-1003058 ofcpe:2.3:a:jenkins:ftp_publisher:*:*:*:*:*:jenkins:*:*
that does not match thetarget
CPE identified by dependency-check:cpe:2.3:a:jenkins:ftp_publisher:*:*:*:*:*:*:*
. The comparison of thesource
target software of jenkins is a subset of thetarget
ANY.Thus, subset should likely be considered true.
The text was updated successfully, but these errors were encountered: