Skip to content

Commit

Permalink
Change: Use score -99 for missing severity in CVEs
Browse files Browse the repository at this point in the history
When a CVE entry in the nvdcve file has no cvss score, it is stored
with the score SEVERITY_MISSING (-99.0) instead of 0.0.

This allows distinguishing them from CVEs that explicitly have a score
of 0.0 assigned.
  • Loading branch information
timopollmeier committed Jul 28, 2023
1 parent 5481353 commit 1302341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2529,7 +2529,7 @@ insert_cve_from_entry (element_t entry, element_t last_modified,
}

if (score == NULL)
severity_dbl = 0;
severity_dbl = SEVERITY_MISSING;
else
severity_dbl = atof (element_text (score));

Expand Down

0 comments on commit 1302341

Please sign in to comment.