SQL Injection in Posthog
CVE-2025-1520
- CVSS v3
- 8.0 High
- Public exploits
- None known
- EPSS
- 0.005 · 41.4th percentile
- Published
- 2025-04-23
PostHog ClickHouse Table Functions SQL Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of PostHog. Authentication is required to exploit this vulnerability.
The specific flaw exists within the implementation of the SQL parser. The issue results from the lack of proper validation of a user-supplied string before using it to construct SQL queries. An attacker can leverage this vulnerability to execute code in the context of the database account. Was ZDI-CAN-25350.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.0 (High). Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
- Attack Vector
- Adjacent
AV:A - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.005, 41.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Posthog — versions b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- ZDI-25-099 (x_research-advisory, Third Party Advisory)
- vendor-provided URL (vendor-advisory, Patch)