grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.4k stars 3.39k forks source link

Critical and High vulnerability in Loki and Promtail docker images reported by AWS ECR scan || Can't use in Production Env #8680

Open Govind10g opened 1 year ago

Govind10g commented 1 year ago

Hi Team,

We did a POC with loki in our AWS EKS stack and before using loki we scanned it in ECR and found multiple security vulnerabilities in ECR scan report and because of that we can not proceed it to use in PRODUCTION environment.

Could you please help us on below security issues which are CRITICAL and HIGH, so that we can use loki and promtail in prod environment.

Docker images details are present in values.yaml file - https://github.com/grafana/loki/blob/main/production/helm/loki/values.yaml

All below images has security vulnerability :-

1. MINIO-MC

2. AGENT-OPERATOR

A timing side-channel in the handling of RSA ClientKeyExchange messages was discovered in GnuTLS. This side-channel can be sufficient to recover the key encrypted in the RSA ciphertext across a network in a Bleichenbacher style attack. To achieve a successful decryption the attacker would need to send a large amount of specially crafted messages to the vulnerable server. By recovering the secret from the ClientKeyExchange message, the attacker would be able to decrypt the application data exchanged over that connection.

An invalid pointer dereference on read can be triggered when an application tries to check a malformed DSA public key by the EVP_PKEY_public_check() function. This will most likely lead to an application crash. This function can be called on public keys supplied from untrusted sources which could allow an attacker to cause a denial of service attack. The TLS implementation in OpenSSL does not call this function but applications might call the function if there are additional security requirements imposed by standards such as FIPS 140-3.

3. GRAFANA-LOKI

4. ENTERPRISE-LOGS

5. ENTERPRISE-LOGS-PROVISIONER

6. LOKI-CANARY

7. NGINX_UNPRIVELEGED

8. PROMTAIL

Govind10g commented 1 year ago

Hi All,

Any suggestion on this ?