CVE-2025-1520
JSON

7.1high

PostHog ClickHouse Table Functions SQL Injection Remote Code Execution Vulnerability

Severity
7.1high CVSS:3.0 by zdi
Exploit likelihood
0.47% (higher than 42% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
zdi
Also known as
GHSA-v64v-fq96-c5wv

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

Product or packageVersionsReported by
PostHog PostHogb8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine, before 0.3.7CVE List, NVD
@posthog/plugin-server (npm)up to 1.10.7GitHub Advisory Database

All scores

zdi7.1high CVSS:3.0CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub7.1high CVSS:3.0CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.0high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-1520 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-v64v-fq96-c5wv changed 2025-04-23CC-BY-4.0
NVDCVE-2025-1520 changed 2026-06-17Public domain