CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

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

7.1 CVSS

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.

Classification

CVE ID: CVE-2025-1520

CVSS Base Severity: HIGH

CVSS Base Score: 7.1

CVSS Vector: CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem Types

CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Affected Products

Vendor: PostHog

Product: PostHog

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.56% (probability of being exploited)

EPSS Percentile: 67.02% (scored less or equal to compared to others)

EPSS Date: 2025-05-22 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2025-1520
https://www.zerodayinitiative.com/advisories/ZDI-25-099/
https://github.com/PostHog/posthog/commit/6e8f035f9acd339c5ba87ba6ea40fc1ab3053d42

Timeline