5.1.0 accepts lessThan 0 (seen in inverted ranges) #324
Labels
bug
Something isn't working
Needs Discussion
Discuss in a future QWG meeting or on mailing list
section:affected_product
Schema location is affected or product
There are four CVE Records with:
For all four, it seems that the lessThan value and the version value were swapped:
Negative version numbers are not normally seen, and thus
"lessThan":"0"
ranges are probably only used by accident.This could be prevented by a schema that has a new definition such as
versionButNotZero
that is similar to:cve-schema/schema/CVE_Record_Format.json
Lines 81 to 85 in 30f59c7
but with a negative lookahead:
and use this for:
cve-schema/schema/CVE_Record_Format.json
Lines 320 to 327 in 30f59c7
(but not for
version
where0
is meaningful)The text was updated successfully, but these errors were encountered: