Skip to content

Commit

Permalink
fix(detector/cpe): do not overwrite distro advisories (#2039)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n authored Oct 2, 2024
1 parent efa2900 commit 0e21ce2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion detector/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,9 @@ func DetectCpeURIsCves(r *models.ScanResult, cpes []Cpe, cnf config.GoCveDictCon
if val, ok := r.ScannedCves[detail.CveID]; ok {
val.CpeURIs = util.AppendIfMissing(val.CpeURIs, cpe.CpeURI)
val.Confidences.AppendIfMissing(maxConfidence)
val.DistroAdvisories = advisories
for _, adv := range advisories {
val.DistroAdvisories.AppendIfMissing(&adv)
}
r.ScannedCves[detail.CveID] = val
} else {
v := models.VulnInfo{
Expand Down

0 comments on commit 0e21ce2

Please sign in to comment.