CVE-2025-1385 Fail input validation in clickhouse-library-bridge API could lead to RCE under specific configuration
Attackers with table engine access can execute arbitrary code on ClickHouse servers if the library bridge feature is enabled.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-1385?
CVE-2025-1385 is a high-severity code injection vulnerability in ClickHouse OSS, published on 20 Mar 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
When the library bridge feature is enabled, the clickhouse-library-bridge exposes an HTTP API on localhost. This allows clickhouse-server to dynamically load a library from a specified path and execute it in an isolated process. Combined with the ClickHouse table engine functionality that permits file uploads to specific directories, a misconfigured server can be exploited by an attacker with privilege to access to both table engines to execute arbitrary code on the ClickHouse server.
You can check if your ClickHouse server is vulnerable to this vulnerability by inspecting the configuration file and confirming if the following setting is enabled:
<library_bridge> <port>9019</port> </library_bridge>
Weakness: CWE-20
Which versions are affected by CVE-2025-1385?
How do I fix CVE-2025-1385?
No fix has been published for CVE-2025-1385 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-1385 being exploited?
There is no known exploitation of CVE-2025-1385 in the wild and no public exploit code.
Sources
Also known as UBUNTU-CVE-2025-1385.