Authenticated code execution via unsanitized SQL strings
Published Apr 23, 2025 · Updated Apr 23, 2025
SQL injection in PostHog's ClickHouse table-function parser allows remote authenticated users to execute code as the database account. The parser incorporates a user-supplied string into a ClickHouse query without validating SQL metacharacters, allowing the input to alter the generated statement. Exploitation requires authenticated access from an adjacent network and can read, modify, or interrupt data available to the database account.
Summary
What happened
SQL injection in PostHog's ClickHouse table-function parser allows remote authenticated users to execute code as the database account. The parser incorporates a user-supplied string into a ClickHouse query without validating SQL metacharacters, allowing the input to alter the generated statement. Exploitation requires authenticated access from an adjacent network and can read, modify, or interrupt data available to the database account.
The record
- CVE
- CVE-2025-1520
- Published
- Apr 23, 2025
- Updated
- Apr 23, 2025
- Vendor
- PostHog
- Product
- PostHog
- Classifications
- CWE-89, T1190
- Attack vector
- adjacent
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 23, 2025CVE publishedPublication date reported by the CVE source.
- Apr 23, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=b8817c14065c23159dcf52849f0bdcd12516c43e, clickhouse 23.12.6.19-alpine
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo