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

SUSE: cvrf format has been changed to support cvss 2 and 3 #87

Open
froh opened this issue Apr 29, 2021 · 1 comment
Open

SUSE: cvrf format has been changed to support cvss 2 and 3 #87

froh opened this issue Apr 29, 2021 · 1 comment

Comments

@froh
Copy link

froh commented Apr 29, 2021

Hi,

the SUSE CVRF files contain cvss2 and cvss3 scores.

cvrf-opensuse-su-2015:0225-1.xml

    <CVSSScoreSets>
      <ScoreSetV2>
        <BaseScoreV2>4</BaseScoreV2>
        <VectorV2>AV:L/AC:L/Au:M/C:P/I:P/A:P</VectorV2>
      </ScoreSetV2>
    </CVSSScoreSets>

cvrf-opensuse-su-2020:1236-1.xml

    <CVSSScoreSets>
      <ScoreSetV2>
        <BaseScoreV2>4.3</BaseScoreV2>
        <VectorV2>AV:N/AC:M/Au:N/C:P/I:N/A:N</VectorV2>
      </ScoreSetV2>
      <ScoreSetV3>
        <BaseScoreV3>5.9</BaseScoreV3>
        <VectorV3>CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N</VectorV3>
      </ScoreSetV3>
    </CVSSScoreSets>

The current handling in suse/cvrf/types.go does not handle this and drops the SUSE score sets.

@froh
Copy link
Author

froh commented Apr 29, 2021

oh. this basically comes from the transition from cvrf 1.1 to cvrf 1.2:
https://www.suse.com/support/security/cvrf/

the reference parser contains schema definitions for both, 1.1 and 1.2. they indeed only differ in allowing for cvss v3 scores, as shown above:

git clone https://github.com/oasis-open/csaf-parser
cd csaf-parser
for d in common/ cvrf/ prod/ vuln/
do
    emacsclient -e " ( ediff-directories \"$d/1.1\" \"$d/1.2\" \".*\" ) " 
done

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

No branches or pull requests

1 participant