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

osv: CVSS v2 vector string should not include version prefix #217

Closed
frasertweedale opened this issue Jul 12, 2024 · 0 comments · Fixed by #218
Closed

osv: CVSS v2 vector string should not include version prefix #217

frasertweedale opened this issue Jul 12, 2024 · 0 comments · Fixed by #218
Assignees

Comments

@frasertweedale
Copy link
Collaborator

Originally posted by @andrewpollock in ossf/osv-schema#251 (comment)

since #168 is what begat #178 a ~year ago, I figured I'd run this PR over all of the Haskell security advisories, and HSEC-2023-0003 doesn't (to me, legitimately) validate:

instance /usr/local/google/home/apollock/gosst/osv/security-advisories/2023/HSEC-2023-0003.json: failed
jsonschema validation failed with 'file:///usr/local/google/home/apollock/gosst/osv/osv-schema/validation/schema.json#'
- at '/affected/0/severity/0': allOf failed
  - at '/affected/0/severity/0/score': 'CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P' does not match pattern '^((AV:[NAL]|AC:[LMH]|Au:[MSN]|[CIA]:[NPC]|E:(U|POC|F|H|ND)|RL:(OF|TF|W|U|ND)|RC:(UC|UR|C|ND)|CDP:(N|L|LM|MH|H'

This is indeed a bug: the vector string should not include the prefix CVSS:2.0/. (Later versions of CVSS do include the prefix, but CVSS v2 does not).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants