Fix non-Windows false positive for CVE-2024-6286 (#27325)

For #27193.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Added/updated automated tests
- [x] A detailed QA plan exists on the associated ticket (if it isn't
there, work with the product group's QA engineer to add it)
- [ ] Manual QA for all new/changed functionality
This commit is contained in:
Ian Littman
2025-03-20 09:21:42 -05:00
committed by GitHub
parent 08dd3940ad
commit 8ef3ff2ae5
3 changed files with 13 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
* Fixed false positive for CVE-2024-6286 on non-Windows hosts.
@@ -259,10 +259,11 @@ func GetKnownNVDBugRules() (CPEMatchingRules, error) {
},
IgnoreAll: true,
},
// CVE-2024-4030 only targets windows operating systems
// CVE-2024-4030 and CVE-2024-6286 only target windows operating systems
CPEMatchingRule{
CVEs: map[string]struct{}{
"CVE-2024-4030": {},
"CVE-2024-6286": {},
},
IgnoreIf: func(cpeMeta *wfn.Attributes) bool {
return cpeMeta.TargetSW != "windows"
+10
View File
@@ -339,6 +339,16 @@ func TestTranslateCPEToCVE(t *testing.T) {
excludedCVEs: []string{"CVE-2011-5049"}, // OS vulnerability
continuesToUpdate: true,
},
"cpe:2.3:a:citrix:workspace:2309.0:*:*:*:*:macos:*:*": {
excludedCVEs: []string{"CVE-2024-6286"},
continuesToUpdate: true,
},
"cpe:2.3:a:citrix:workspace:2309.0:*:*:*:*:windows:*:*": {
includedCVEs: []cve{
{ID: "CVE-2024-6286", resolvedInVersion: "2402"},
},
continuesToUpdate: true,
},
"cpe:2.3:a:python:python:3.9.6:*:*:*:*:macos:*:*": {
excludedCVEs: []string{"CVE-2024-4030"},
continuesToUpdate: true,