mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Python Vulnerability False Positive (#21493)
This commit is contained in:
parent
750e808bfa
commit
e376d3ddbb
3 changed files with 20 additions and 0 deletions
1
changes/19562-python-vuln
Normal file
1
changes/19562-python-vuln
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Fixed CVE-2024-4030 in Vulncheck feed incorrectly targeting non-Windows hosts
|
||||
|
|
@ -240,6 +240,15 @@ func GetKnownNVDBugRules() (CPEMatchingRules, error) {
|
|||
},
|
||||
IgnoreAll: true,
|
||||
},
|
||||
// CVE-2024-4030 only targets windows operating systems
|
||||
CPEMatchingRule{
|
||||
CVEs: map[string]struct{}{
|
||||
"CVE-2024-4030": {},
|
||||
},
|
||||
IgnoreIf: func(cpeMeta *wfn.Attributes) bool {
|
||||
return cpeMeta.TargetSW != "windows"
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for i, rule := range rules {
|
||||
|
|
|
|||
|
|
@ -337,6 +337,16 @@ func TestTranslateCPEToCVE(t *testing.T) {
|
|||
excludedCVEs: []string{"CVE-2011-5049"}, // OS vulnerability
|
||||
continuesToUpdate: true,
|
||||
},
|
||||
"cpe:2.3:a:python:python:3.9.6:*:*:*:*:macos:*:*": {
|
||||
excludedCVEs: []string{"CVE-2024-4030"},
|
||||
continuesToUpdate: true,
|
||||
},
|
||||
"cpe:2.3:a:python:python:3.9.6:*:*:*:*:windows:*:*": {
|
||||
includedCVEs: []cve{
|
||||
{ID: "CVE-2024-4030", resolvedInVersion: "3.12.4"},
|
||||
},
|
||||
continuesToUpdate: true,
|
||||
},
|
||||
}
|
||||
|
||||
cveOSTests := []struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue