SQL Injection in Posthog
CVE-2025-1520
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
EPSS: 0.005 (40.5th percentile) — read the EPSS interpretation.
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.
Affected products
- Posthog — versions b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine
Weakness classification (CWE)
Public proof-of-concept exploits
References
- zdi-disclosures@trendmicro.com (x_research-advisory, Third Party Advisory)
- zdi-disclosures@trendmicro.com (vendor-advisory, Patch)
Frequently asked questions
- What is CVE-2025-1520?
- CVE-2025-1520 is a high-severity vulnerability in Posthog, classified under SQL Injection. CVSS score: 8.0/10. Published 2025-04-23.
- How severe is CVE-2025-1520?
- High severity. CVSS v3 base score is 8.0 out of 10.
- Is CVE-2025-1520 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.