mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
add CVE-2013-0340 to ignore list (#13942)
This commit is contained in:
parent
d38159efd6
commit
0bde133831
1
changes/11926-python-vuln-false-positive
Normal file
1
changes/11926-python-vuln-false-positive
Normal file
@ -0,0 +1 @@
|
||||
- CVE-2013-0340 no longer reports as a valid vulnerability due to NVD recommendations
|
@ -255,4 +255,10 @@ func TestGetKnownNVDBugRules(t *testing.T) {
|
||||
require.True(t, ok)
|
||||
ok = rule.CPEMatches(cpeMeta)
|
||||
require.False(t, ok)
|
||||
|
||||
// Test that CVE-2013-0340 never matches (i.e. is ignored).
|
||||
rule, ok = cpeMatchingRules.FindMatch("CVE-2013-0340")
|
||||
require.True(t, ok)
|
||||
ok = rule.CPEMatches(cpeMeta)
|
||||
require.False(t, ok)
|
||||
}
|
||||
|
@ -140,6 +140,13 @@ func GetKnownNVDBugRules() (CPEMatchingRules, error) {
|
||||
"CVE-2020-10146": {},
|
||||
},
|
||||
},
|
||||
// #9835 Python expat 2.1.0 CVE recommends rejecting the report, no CVSS score, broad CPE criteria
|
||||
CPEMatchingRule{
|
||||
IgnoreAll: true,
|
||||
CVEs: map[string]struct{}{
|
||||
"CVE-2013-0340": {},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for i, rule := range rules {
|
||||
|
Loading…
Reference in New Issue
Block a user