CVE-2025-1520

High

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.

SeverityHigh
CVSS8.0
Exploit probability—
ProductPosthog
PublishedApr 23, 2025
First seenApr 23, 2025
Weakness typeCWE-89SQL injection

How to fix

Update
  • posthog posthog0.3.7 or later

Affected products

ProductAffected versionsFixed in
posthog posthogv < 0.3.70.3.7
@posthog/plugin-servernpmv ≤ 1.10.7—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.