CVE-2024-45627 Apache Linkis Metadata Query Service JDBC: JDBC Datasource Module with Mysql has file read vulnerability
An authenticated attacker can read arbitrary files from the server by configuring malicious MySQL JDBC parameters in the DataSource Manager Module.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-45627?
CVE-2024-45627 is a medium-severity path traversal vulnerability in Apache Linkis Metadata Query Service JDBC, published on 14 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In Apache Linkis <1.7.0, due to the lack of effective filtering of parameters, an attacker configuring malicious Mysql JDBC parameters in the DataSource Manager Module will
allow the attacker to read arbitrary files from the Linkis server. Therefore, the parameters in the Mysql JDBC URL should be blacklisted. This attack requires the attacker to obtain an authorized account from Linkis before it can be carried out. Versions of Apache Linkis < 1.7.0 will be affected. We recommend users upgrade the version of Linkis to version 1.7.0.
Weakness: CWE-552
Which versions are affected by CVE-2024-45627?
2 open source packages ship an affected version, including org.apache.linkis:linkis-metadata-query-service-jdbc. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.linkis:linkis-metadata-query-service-jdbc Maven | From 1.5.0 | 1.7.0 |
org.apache.linkis:linkis-metadata-query-service-jdbc Maven | From 1.5.0 | 1.7.0 |
Products include Apache Linkis.
How do I fix CVE-2024-45627?
Upgrade org.apache.linkis:linkis-metadata-query-service-jdbc to 1.7.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-45627 being exploited?
There is no known exploitation of CVE-2024-45627 in the wild and no public exploit code.
Other vulnerabilities in Apache Linkis Metadata Query Service JDBC
- CVE-2023-27602 Apache Linkis publicsercice module unrestricted upload of file
- CVE-2023-27603 Apache Linkis Mangaer module engineConn material upload exists Zip Slip issue
- CVE-2023-29215 Apache Linkis JDBC EngineCon has a deserialization command execution
- CVE-2023-29216 Apache Linkis DatasourceManager module has a deserialization command execution
- CVE-2023-27987 Apache Linkis gateway module token authentication bypass
Sources
Also known as GHSA-8cvq-3jjp-ph9p.