From 9be866b7206d16a38d028049616dd855a0a779c0 Mon Sep 17 00:00:00 2001 From: Laurent Goderre Date: Mon, 6 May 2024 14:13:23 -0400 Subject: [PATCH] Add missing CPE for traefik, memcached, and postgres binaries Signed-off-by: Laurent Goderre --- syft/pkg/cataloger/binary/classifiers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syft/pkg/cataloger/binary/classifiers.go b/syft/pkg/cataloger/binary/classifiers.go index f1be7a6d39b..06c68773dde 100644 --- a/syft/pkg/cataloger/binary/classifiers.go +++ b/syft/pkg/cataloger/binary/classifiers.go @@ -246,6 +246,7 @@ func DefaultClassifiers() []Classifier { `(?m)memcached\s(?P[0-9]+\.[0-9]+\.[0-9]+)`), Package: "memcached", PURL: mustPURL("pkg:generic/memcached@version"), + CPEs: singleCPE("cpe:2.3:a:memcached:memcached:*:*:*:*:*:*:*:*"), }, { Class: "traefik-binary", @@ -256,6 +257,7 @@ func DefaultClassifiers() []Classifier { `(?m)(\x00|\x{FFFD})v?(?P[0-9]+\.[0-9]+\.[0-9]+(-alpha[0-9]|-beta[0-9]|-rc[0-9])?)\x00`), Package: "traefik", PURL: mustPURL("pkg:generic/traefik@version"), + CPEs: singleCPE("cpe:2.3:a:traefik:traefik:*:*:*:*:*:*:*:*"), }, { Class: "postgresql-binary", @@ -268,6 +270,7 @@ func DefaultClassifiers() []Classifier { `(?m)(\x00|\?)PostgreSQL (?P[0-9]+(\.[0-9]+)?(\.[0-9]+)?(alpha[0-9]|beta[0-9]|rc[0-9])?)`), Package: "postgresql", PURL: mustPURL("pkg:generic/postgresql@version"), + CPEs: singleCPE("cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*"), }, { Class: "mysql-binary",