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

- Severity: High 7.1 (CVSS:3.0, scored by zdi) `CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-04-23T16:45:19.536Z
- Modified: 2026-06-17T08:39:17.797Z
- Also known as: GHSA-v64v-fq96-c5wv
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: zdi

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

(As written by CVE List.)

## Affected

- PostHog PostHog: b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine; before 0.3.7
- @posthog/plugin-server (npm): up to 1.10.7

## Every score

- zdi: CVSS:3.0 7.1 High `CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 7.1 High `CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.0 High `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.zerodayinitiative.com/advisories/ZDI-25-099/> (third-party-advisory)
- <https://github.com/PostHog/posthog/commit/6e8f035f9acd339c5ba87ba6ea40fc1ab3053d42> (patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1520> (advisory)
- <https://github.com/PostHog/plugin-server> (package)
- <https://www.zerodayinitiative.com/advisories/ZDI-25-099> (web)

## Sources

- CVE List: [CVE-2025-1520](https://www.cve.org/CVERecord?id=CVE-2025-1520), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-v64v-fq96-c5wv](https://github.com/advisories/GHSA-v64v-fq96-c5wv), CC-BY-4.0, modified 2025-04-23
- NVD: [CVE-2025-1520](https://nvd.nist.gov/vuln/detail/CVE-2025-1520), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-1520 · Whole record: https://cve.day/CVE-2025-1520.json · Rebuilt by cve.day 2026-11-25T22:58:56.860Z
