Prometheus is an open-source monitoring system and time series database. Prior to versions 3.5.3 and 3.11.3, the remote read endpoint (/api/v1/read) does not validate the declared decoded length in a snappy-compressed request body before allocating memory. An unauthenticated attacker can send a small payload that causes a huge heap allocation per request. Under concurrent load this can exhaust available memory and crash the Prometheus process. This issue has been patched in versions 3.5.3 and 3.11.3.
Withdrawn Advisory This advisory has been withdrawn because the vulnerability does not apply to the Prometheus golang package. This link is maintained to preserve external references.
Original Description A stored, DOM based, cross-site scripting (XSS) flaw was found in Prometheus before version 2.7.1. An attacker could exploit this by convincing an authenticated user to visit a crafted URL on a Prometheus server, allowing for the execution and persistent storage of arbitrary scripts.
An attacker sending a large number of crafted DNS queries might be able to trigger a dynamic block being inserted with a value causing invalid output to be produced in the prometheus endpoint. The prometheus endpoint will then be rejected by the scraper until the dynamic block expires.
End of life: 4/30/2024, Latest version: 2.51.2
End of life: 4/30/2024, Latest version: 2.51.2
End of life: 7/31/2023, Latest version: 2.37.9
End of life: 7/31/2023, Latest version: 2.37.9
End of life: 11/16/2022, Latest version: 2.39.2
End of life: 11/16/2022, Latest version: 2.39.2
End of life: 12/28/2023, Latest version: 2.48.1
End of life: 12/28/2023, Latest version: 2.48.1
End of life: 1/31/2023, Latest version: 2.41.0
End of life: 1/31/2023, Latest version: 2.41.0
End of life: 8/6/2023, Latest version: 2.44.0
End of life: 8/6/2023, Latest version: 2.44.0
End of life: 9/27/2022, Latest version: 2.38.0
End of life: 9/27/2022, Latest version: 2.38.0
End of life: 7/11/2022, Latest version: 2.36.2
End of life: 7/11/2022, Latest version: 2.36.2
End of life: 5/2/2023, Latest version: 2.43.1
End of life: 5/2/2023, Latest version: 2.43.1
End of life: 4/4/2024, Latest version: 2.50.1
End of life: 4/4/2024, Latest version: 2.50.1
End of life: 3/14/2023, Latest version: 2.42.0
End of life: 3/14/2023, Latest version: 2.42.0
End of life: 10/18/2023, Latest version: 2.47.2
End of life: 10/18/2023, Latest version: 2.47.2
End of life: 7/31/2024, Latest version: 2.45.6
End of life: 7/31/2024, Latest version: 2.45.6
End of life: 12/19/2022, Latest version: 2.40.7