Merge pull request #681 from Allda/rhel_severity

Vulnsrc rhel: handle "none" CVE impact
This commit is contained in:
Jimmy Zelinskie 2019-01-02 15:58:23 -05:00 committed by GitHub
commit 5cd6a8cc92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,7 +221,7 @@ func parseRHSA(ovalReader io.Reader) (vulnerabilities []database.VulnerabilityWi
for _, currentCve := range definition.Cves {
vulnerability.Name = currentCve.ID
vulnerability.Link = currentCve.Href
if currentCve.Impact != "" {
if currentCve.Impact != "" && currentCve.Impact != "none" {
vulnerability.Severity = severity(currentCve.Impact)
} else {
vulnerability.Severity = severity(definition.Severity)