mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 00:13:15 +01:00
fix: Remove two Rust crate false positive CPE matches (#3962)
Rust crates opentelemetry and redis are being given CPEs that match CVEs such as CVE-2023-45142 and CVE-2022-24735 respectively. The vendor overrides added here prevent that. Signed-off-by: John Vandenberg <jayvdb@gmail.com>
This commit is contained in:
parent
c36c69779a
commit
bd894b9c4d
@ -486,7 +486,6 @@ var defaultCandidateAdditions = buildCandidateLookup(
|
||||
candidateKey{PkgName: "dnsmasq", Vendor: "dnsmasq"},
|
||||
candidateAddition{AdditionalVendors: []string{"thekelleys"}},
|
||||
},
|
||||
//
|
||||
// Binary packages
|
||||
{
|
||||
pkg.BinaryPkg,
|
||||
@ -630,7 +629,18 @@ var defaultCandidateRemovals = buildCandidateRemovalLookup(
|
||||
candidateKey{PkgName: "grpc"},
|
||||
candidateRemovals{ProductsToRemove: []string{"grpc"}},
|
||||
},
|
||||
// PHP Packages
|
||||
// Rust packages
|
||||
{
|
||||
pkg.RustPkg,
|
||||
candidateKey{PkgName: "opentelemetry"},
|
||||
candidateRemovals{ProductsToRemove: []string{"opentelemetry"}},
|
||||
},
|
||||
{
|
||||
pkg.RustPkg,
|
||||
candidateKey{PkgName: "redis"},
|
||||
candidateRemovals{VendorsToRemove: []string{"redis"}},
|
||||
},
|
||||
// PHP packages
|
||||
{
|
||||
pkg.PhpPearPkg,
|
||||
candidateKey{PkgName: "redis"},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user