Skip to content

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

HighCVSS 8.0 EPSS 0.47%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
posthog < 0.3.7; = b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine 0.3.7 Fixed
posthog @posthog/plugin-server(npm) <= 1.10.7 after 1.10.7 Fixed

Affected products

ProductAffected versionsFixed in
posthog @posthog/plugin-server(npm) <= 1.10.7 No fix listed
posthog = b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine No fix listed
posthog < 0.3.7 0.3.7

References