Skip to content
Heist/ feed
Back to feed
High

PostHog ClickHouse Table Functions SQL Injection Remote Code Execution Vulnerability

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-1520
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:39 UTC · Revision 1

Source evidence

PostHog ClickHouse Table Functions SQL Injection Remote Code Execution Vulnerability

core-osv · Original source

Published 23 Apr 2025, 16:45 UTC

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.

osv:CVE-2025-1520
Complete source record
{
  "id": "d6fbe6babe6bc15ef857ce997c7c0a98fdeb9457d49ae03c46fa83f684a49e57",
  "url": "https://osv.dev/vulnerability/CVE-2025-1520",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "PostHog ClickHouse Table Functions SQL Injection Remote Code Execution Vulnerability",
    "summary": "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.",
    "evidence": "osv:CVE-2025-1520",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-1520",
      "aliases": [
        "CVE-2025-1520",
        "GHSA-v64v-fq96-c5wv"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/posthog/posthog",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0df30badc50025bddc3a26ee480e230213a0d566"
                },
                {
                  "fixed": "6e8f035f9acd339c5ba87ba6ea40fc1ab3053d42"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:posthog:posthog:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.3.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6e8f035f9acd339c5ba87ba6ea40fc1ab3053d42"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.25.0-beta",
            "release-1.22.0-beta",
            "1.22.0-beta",
            "1.1.0.1",
            "1.1.0",
            "1.0.11",
            "1.0.10.2",
            "1.0.10.1",
            "1.0.10",
            "1.0.9",
            "1.0.8.3",
            "1.0.8.2",
            "1.0.8",
            "list",
            "1.0.7",
            "1.0.6",
            "1.0.5",
            "1.0.4",
            "1.0.3",
            "1.0.2",
            "1.0.1",
            "1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-1520.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.230212027Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1520.json",
        "https://github.com/PostHog/posthog/commit/6e8f035f9acd339c5ba87ba6ea40fc1ab3053d42",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-1520",
        "https://www.zerodayinitiative.com/advisories/ZDI-25-099/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "zdi",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine"
                  },
                  {
                    "last_affected": "b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1520.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-1520",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517431,
  "published_at": "2025-04-23T16:45:19.536+00:00"
}