Skip to content

Incorrect CVSS scores in GitLab v2 advisories #2330

Description

@keshav-space

Rather than storing None, the pipeline should compute and store valid CVSS scores from CVSS vector using Cvssv2ScoringSystem.compute and Cvssv3ScoringSystem.compute.

VulnerabilitySeverity(
system=SCORING_SYSTEMS["cvssv2"],
scoring_elements=cvss_v2,
value=None,
url=advisory_url,
)
)
if cvss_v3:
scoring_system = SCORING_SYSTEMS["cvssv3"]
if cvss_v3.startswith("CVSS:3.1/"):
scoring_system = SCORING_SYSTEMS["cvssv3.1"]
severities.append(
VulnerabilitySeverity(
system=scoring_system,
scoring_elements=cvss_v3,
value=None,
url=advisory_url,
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions