diff --git a/src/manage_sql.c b/src/manage_sql.c index 0eb7005d3..e4750a57e 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -20112,7 +20112,7 @@ init_host_prognosis_iterator (iterator_t* iterator, report_host_t report_host) " FROM scap.cves, scap.cpes, scap.affected_products," " report_host_details" " WHERE report_host_details.report_host = %llu" - " AND cpes.name = report_host_details.value" + " AND LOWER(cpes.name) = LOWER(report_host_details.value)" " AND report_host_details.name = 'App'" " AND cpes.id=affected_products.cpe" " AND cves.id=affected_products.cve"