// For flags

CVE-2025-1385

Fail input validation in clickhouse-library-bridge API could lead to RCE under specific configuration

Severity Score

7.5
*CVSS v4

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track*
*SSVC
Descriptions

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>

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>

*Credits: Arseniy Dugin
CVSS Scores
Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
High
User Interaction
None
System
Vulnerable | Subsequent
Confidentiality
High
None
Integrity
High
None
Availability
High
None
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Network
Attack Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:Track*
Exploitation
None
Automatable
No
Tech. Impact
Total
* Organization's Worst-case Scenario
Timeline
  • 2025-02-17 CVE Reserved
  • 2025-03-20 CVE Published
  • 2025-03-20 CVE Updated
  • 2025-03-30 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-20: Improper Input Validation
CAPEC
  • CAPEC-108: Command Line Execution through SQL Injection
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
ClickHouse
Search vendor "ClickHouse"
ClickHouse OSS
Search vendor "ClickHouse" for product "ClickHouse OSS"
>= 24.3.0.0 < 24.3.18.6
Search vendor "ClickHouse" for product "ClickHouse OSS" and version " >= 24.3.0.0 < 24.3.18.6"
en
Affected
ClickHouse
Search vendor "ClickHouse"
ClickHouse OSS
Search vendor "ClickHouse" for product "ClickHouse OSS"
>= 24.8.0.0 < 24.8.14.27
Search vendor "ClickHouse" for product "ClickHouse OSS" and version " >= 24.8.0.0 < 24.8.14.27"
en
Affected
ClickHouse
Search vendor "ClickHouse"
ClickHouse OSS
Search vendor "ClickHouse" for product "ClickHouse OSS"
>= 24.11.0.0 < 24.11.5.34
Search vendor "ClickHouse" for product "ClickHouse OSS" and version " >= 24.11.0.0 < 24.11.5.34"
en
Affected
ClickHouse
Search vendor "ClickHouse"
ClickHouse OSS
Search vendor "ClickHouse" for product "ClickHouse OSS"
>= 24.12.0.0 < 24.12.5.65
Search vendor "ClickHouse" for product "ClickHouse OSS" and version " >= 24.12.0.0 < 24.12.5.65"
en
Affected
ClickHouse
Search vendor "ClickHouse"
ClickHouse OSS
Search vendor "ClickHouse" for product "ClickHouse OSS"
>= 25.1.0.0 < 25.1.5.5
Search vendor "ClickHouse" for product "ClickHouse OSS" and version " >= 25.1.0.0 < 25.1.5.5"
en
Affected