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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:posthog:posthog:*:*:*:*:*:*:*:*

History

07 Aug 2025, 18:23

Type Values Removed Values Added
First Time Posthog
Posthog posthog
References () https://github.com/PostHog/posthog/commit/6e8f035f9acd339c5ba87ba6ea40fc1ab3053d42 - () https://github.com/PostHog/posthog/commit/6e8f035f9acd339c5ba87ba6ea40fc1ab3053d42 - Patch
References () https://www.zerodayinitiative.com/advisories/ZDI-25-099/ - () https://www.zerodayinitiative.com/advisories/ZDI-25-099/ - Third Party Advisory
CPE cpe:2.3:a:posthog:posthog:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : 7.1
v2 : unknown
v3 : 8.0

29 Apr 2025, 13:52

Type Values Removed Values Added
Summary
  • (es) Vulnerabilidad de ejecución remota de código por inyección SQL en PostHog ClickHouse Table Functions. Esta vulnerabilidad permite a atacantes adyacentes a la red ejecutar código arbitrario en las instalaciones afectadas de PostHog. Se requiere autenticación para explotar esta vulnerabilidad. La falla específica se encuentra en la implementación del analizador SQL. El problema se debe a la falta de validación adecuada de una cadena proporcionada por el usuario antes de usarla para construir consultas SQL. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto de la cuenta de la base de datos. Anteriormente, se denominó ZDI-CAN-25350.

23 Apr 2025, 17:16

Type Values Removed Values Added
New CVE

Information

Published : 2025-04-23 17:16

Updated : 2025-08-07 18:23


NVD link : CVE-2025-1520

Mitre link : CVE-2025-1520

CVE.ORG link : CVE-2025-1520


JSON object : View

Products Affected

posthog

  • posthog
CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')