Medium

CrateDB database has an arbitrary file read vulnerability

  • Disclosed: 30.01.2024
  • Updated: 11.10.2026 13:20

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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) io.crate:crate < 5.3.9, >= 5.4.0, < 5.4.8, >= 5.5.0, < 5.5.4, >= 5.6.0, < 5.6.1 5.3.9, 5.4.8, 5.5.4, 5.6.1

References

CVSS score 5.7/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-22
Platform
Java / Kotlin (Maven)
Package
io.crate:crate
Disclosed
30.01.2024
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-475g-vj6c-xf96 - CC BY 4.0

Vulnerability history: io.crate:crate

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
01.2024 07.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 2
  • Low 1

Disclosures per year

  1. 2024: 3
  2. 2025: 0
  3. 2026: 1
  1. Low · 0.0 CVE-2026-49989 < 6.2.8, >= 6.3.0, < 6.3.2 6.2.8, 6.3.2
  2. Medium · 5.3 CVE-2024-37309 < 5.7.2 5.7.2
  3. CrateDB database has an arbitrary file read vulnerability this entry
    Medium · 5.7 CVE-2024-24565 < 5.3.9, >= 5.4.0, < 5.4.8, >= 5.5.0, < 5.5.4, >= 5.6.0, < 5.6.1 5.3.9, 5.4.8, 5.5.4, 5.6.1
  4. High · 7.5 CVE-2023-51982 < 5.2.11, >= 5.3.0, < 5.3.8, >= 5.4.0, < 5.4.7, >= 5.5.0, < 5.5.2 5.2.11, 5.3.8, 5.4.7, 5.5.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.