{"id":"CVE-2024-24565","aliases":["CVE-2024-24565","GHSA-475g-vj6c-xf96"],"related":[],"kind":"vulnerability","state":"published","title":"CrateDB database has an arbitrary file read vulnerability","summary":"CrateDB is a distributed SQL database that makes it simple to store and analyze massive amounts of data in real-time. 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. This vulnerability is patched in 5.3.9, 5.4.8, 5.5.4, and 5.6.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"CrateDB is a distributed SQL database that makes it simple to store and analyze massive amounts of data in real-time. 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. This vulnerability is patched in 5.3.9, 5.4.8, 5.5.4, and 5.6.1.","source":"cvelist"},{"lang":"en","text":"### Summary\nThere is an arbitrary file read vulnerability in the CrateDB database, and authenticated CrateDB database users can read any file on the system.\n\n### Details\nThere 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.\n\n### PoC\n```\nCREATE TABLE info_leak(info_leak STRING);\nCOPY info_leak FROM '/etc/passwd' with (format='csv', header=false); or COPY info_leak FROM '/crate/config/crate.yml' with (format='csv', header=false);\nSELECT * FROM info_leak;\n```\n![image](https://user-images.githubusercontent.com/154296962/292985975-ff5f2fb8-1a3f-4b49-9951-cd1fc6e78031.png)\n\n\n### Impact\nThis 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.\n![image](https://user-images.githubusercontent.com/154296962/292986215-aec5adfe-38cc-4f31-bf86-c50ecbb44d5d.png)","format":"markdown","source":"ghsa"},{"lang":"es","text":"CrateDB es una base de datos SQL distribuida que simplifica el almacenamiento y análisis de cantidades masivas de datos en tiempo real. Hay una función COPIAR DESDE en la base de datos CrateDB que se utiliza para importar datos de archivos a tablas de bases de datos. Esta función tiene un defecto y los atacantes autenticados pueden utilizar la función COPIAR DE para importar contenido de archivos arbitrario en tablas de bases de datos, lo que provoca una fuga de información. Esta vulnerabilidad está parcheada en 5.3.9, 5.4.8, 5.5.4 y 5.6.1.","source":"nvd"}],"published":"2024-01-30T16:46:15.200Z","modified":"2026-09-10T03:50:04.877Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","score":5.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","score":5.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","score":5.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 5.3.9","status":"affected"},{"version":">= 5.4.0, < 5.4.8","status":"affected"},{"version":">= 5.5.0, < 5.5.4","status":"affected"},{"version":">= 5.6.0, < 5.6.1","status":"affected"}],"vendor":"crate","product":"crate","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"5.3.9","status":"affected"},{"type":"custom","introduced":"5.4.0","fixed":"5.4.8","status":"affected"},{"type":"custom","introduced":"5.5.0","fixed":"5.5.4","status":"affected"},{"type":"custom","introduced":"5.6.0","fixed":"5.6.1","status":"affected"}],"vendor":"cratedb","product":"cratedb","cpe":"cpe:2.3:a:cratedb:cratedb:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.3.9"}],"ecosystem":"Maven","package":"io.crate:crate","purl":"pkg:maven/io.crate/crate","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.4.0","status":"affected","fixed":"5.4.8"}],"ecosystem":"Maven","package":"io.crate:crate","purl":"pkg:maven/io.crate/crate","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.5.0","status":"affected","fixed":"5.5.4"}],"ecosystem":"Maven","package":"io.crate:crate","purl":"pkg:maven/io.crate/crate","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.6.0","status":"affected","fixed":"5.6.1"}],"ecosystem":"Maven","package":"io.crate:crate","purl":"pkg:maven/io.crate/crate","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.3.9"},{"status":"affected","introduced":"5.4.0","fixed":"5.4.8"},{"status":"affected","introduced":"5.5.0","fixed":"5.5.4"},{"status":"affected","introduced":"5.6.0","fixed":"5.6.1"}],"vendor":"cratedb","product":"cratedb","cpe":"cpe:2.3:a:cratedb:cratedb:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/crate/crate/security/advisories/GHSA-475g-vj6c-xf96","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/crate/crate/commit/4e857d675683095945dd524d6ba03e692c70ecd6","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24565","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/crate/crate/commit/32d0fc2ebb834ea324eb7ab5d01320a67bc5c3c7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/crate/crate/commit/b75aeeabf90f51bd96ddb499903928fd10185207","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/crate/crate/commit/c4c97d5a1c52cc2250ea42d062a3d37550c19dd5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/crate/crate/commit/c5034323f1b56ca5d04b8ef4c6029eb63a5ba172","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/crate/crate","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-08-23T19:29:50.519Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-24565","url":"https://www.cve.org/CVERecord?id=CVE-2024-24565","licence":"CVE Terms of Use","modified":"2024-08-23T19:32:35.447Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-475g-vj6c-xf96","url":"https://github.com/advisories/GHSA-475g-vj6c-xf96","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:04.877Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-24565","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24565","licence":"Public domain","modified":"2026-06-17T07:14:37.100Z"}],"updatedAt":"2026-11-25T22:58:36.449Z","epss":{"score":0.03531,"percentile":0.90043,"date":"2026-11-30T12:00:22.000Z"}}