Skip to content

Use generic_textual for curl severities instead of cvssv3.1 - #2558

Open
Ankit-dmc wants to merge 1 commit into
aboutcode-org:mainfrom
Ankit-dmc:curl-generic-severity
Open

Ankit-dmc wants to merge 1 commit into
aboutcode-org:mainfrom
Ankit-dmc:curl-generic-severity

Conversation

@Ankit-dmc

Copy link
Copy Markdown

Fixes #2557

curl rates its advisories Low/Medium/High/Critical on its own scale and says it does not use CVSS (https://curl.se/dev/vuln-disclosure.html#severity-levels). curl_importer_v2 stored these values under cvssv3.1, so every curl advisory had a "CVSSv3.1" severity like "Low".

This switches the system to GENERIC (generic_textual), which is what other importers use for textual ratings, and updates the test that asserted cvssv3.1.

Checked:

  • pytest vulnerabilities/tests/pipelines/v2_importers/test_curl_importer_v2.py vulnerabilities/tests/test_risk.py passes (risk scoring already maps textual values like "low"/"critical")
  • black --check and isort --check-only pass on the changed files
  • parsed the live https://curl.se/docs/vuln.json: all 239 advisories now get generic_textual

Note: severities already stored from earlier runs keep cvssv3.1 until the importer runs again.

curl rates its advisories Low/Medium/High/Critical on its own scale and
states it does not use CVSS, but curl_importer_v2 stored these values
under the cvssv3.1 scoring system.

Signed-off-by: Ankit-dmc <Ankit-dmc@users.noreply.github.com>

This branch has not been deployed

No deployments
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 this pull request may close these issues.

curl_importer_v2 stores curl's textual severity (Low/Medium/High/Critical) as CVSS v3.1

1 participant