Skip to content

Commit

Permalink
Ignore CVE-2024-10327 since it's iOS-only
Browse files Browse the repository at this point in the history
For #25075
  • Loading branch information
iansltx committed Jan 1, 2025
1 parent 5a30b47 commit 3e4ec21
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/25075-false-positive
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fixed CVE-2024-10327 false positive on Fleet-supported platforms (vuln is iOS-only and iOS vuln checking is not supported)
10 changes: 8 additions & 2 deletions server/vulnerabilities/nvd/cpe_matching_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,14 @@ func GetKnownNVDBugRules() (CPEMatchingRules, error) {
return cpeMeta.TargetSW != "windows"
},
},
// CVE-2024-10004 only targets iOS, and we don't yet support iOS vuln scanning (and can't tell iOS/Mac CPEs apart yet)
CPEMatchingRule{CVEs: map[string]struct{}{"CVE-2024-10004": {}}, IgnoreAll: true},
// these CVEs only target iOS, and we don't yet support iOS vuln scanning (and can't tell iOS/Mac CPEs apart yet)
CPEMatchingRule{
CVEs: map[string]struct{}{
"CVE-2024-10004": {},
"CVE-2024-10327": {}, // also missing a CPE as of 2025-01-01
},
IgnoreAll: true,
},
}

for i, rule := range rules {
Expand Down
4 changes: 4 additions & 0 deletions server/vulnerabilities/nvd/cve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ func TestTranslateCPEToCVE(t *testing.T) {
excludedCVEs: []string{"CVE-2024-10004"},
continuesToUpdate: true,
},
"cpe:2.3:a:okta:verify:9.27.0:*:*:*:*:macos:*:*": {
excludedCVEs: []string{"CVE-2024-10327"},
continuesToUpdate: true,
},
}

cveOSTests := []struct {
Expand Down

0 comments on commit 3e4ec21

Please sign in to comment.