From 23f3bb9622844a9c7ce5f315f6c385cf73893acb Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Wed, 29 May 2024 10:57:43 +0200 Subject: [PATCH] Fix EPSS filtering in CVE aggregates The get_aggregates command can now handle the EPSS fields added to CVEs. --- src/manage_sql.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/manage_sql.c b/src/manage_sql.c index 152d5f9be..263c59385 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -57795,6 +57795,8 @@ type_opts_table (const char *type, const char *filter) { if (type == NULL) return NULL; + if (strcasecmp (type, "CVE") == 0) + return g_strdup (" LEFT JOIN scap.epss_scores ON cve = cves.uuid"); if (strcasecmp (type, "TASK") == 0) return task_iterator_opts_table (filter_term_apply_overrides (filter), filter_term_min_qod (filter), 0);