Vulnerability · Published Apr 23, 2025 · Assigned by zdi

CVE-2025-1520PostHog ClickHouse Table Functions SQL Injection Remote Code Execution Vulnerability

High 7.1

In plain English

A high-severity SQL injection in PostHog from PostHog. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities).

Severity (CVSS 3.0)7.1High
Exploit odds (30 days)0.5%top 59.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@posthog/plugin-serverno fix listedGHSA-v64v-fq96-c5wv

Affected products (as reported)

VendorProductVersions
PostHog PostHog b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine

Weakness: CWE-89 · Vector: CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References