Skip to content

Commit

Permalink
fix: add translation for iterm2 (#25477) (#25541)
Browse files Browse the repository at this point in the history
cherry-pick for #25477
  • Loading branch information
jahzielv authored Jan 17, 2025
1 parent c382e8d commit 77de97e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/25130-iterm-false-neg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed a false negative vulnerability reporting for iTerm2 (available to all recent Fleet releases as of January 17th via a vulnerability feed update)
12 changes: 11 additions & 1 deletion server/vulnerabilities/nvd/cpe_translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -545,5 +545,15 @@
"product": ["cli"],
"vendor": ["github"]
}
},
{
"software": {
"bundle_identifier": ["/^com\\.googlecode\\.iterm2/"],
"source": ["apps"]
},
"filter": {
"product": ["iterm2"],
"vendor": ["iterm2"]
}
}
]
]
3 changes: 3 additions & 0 deletions server/vulnerabilities/nvd/cve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ func TestTranslateCPEToCVE(t *testing.T) {
excludedCVEs: []string{"CVE-2024-37051"},
continuesToUpdate: true,
},
"cpe:2.3:a:iterm2:iterm2:3.5.2:*:*:*:*:*:*:*": {
includedCVEs: []cve{{ID: "CVE-2024-38395", resolvedInVersion: ""}},
},
}

cveOSTests := []struct {
Expand Down

0 comments on commit 77de97e

Please sign in to comment.