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
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.
EPSS exploit prediction
EPSS: 0.005 (38.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 38th percentile — 38.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: +0.000
Affected products
- Posthog — versions b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine
Weakness classification (CWE)
Public proof-of-concept exploits
References
- www.zerodayinitiative.com/advisories/ZDI-25-099/ (x_research-advisory, Third Party Advisory)
- github.com/PostHog/posthog/commit/6e8f035f9acd339c5ba87ba6ea40fc1ab3053d42 (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.