{"id":"CVE-2024-41672","published":"2024-07-24T17:47:20Z","modified":"2024-08-02T04:46:52Z","title":"DuckDB: sniff_csv provides filesystem access even when enable_external_access is disabled","vendor":"duckdb","product":"duckdb","tier":"tail","description":{"text":"DuckDB is a SQL database management system. In versions 1.0.0 and prior, content in filesystem is accessible for reading using `sniff_csv`, even with `enable_external_access=false`. This vulnerability provides an attacker with access to filesystem even when access is expected to be disabled and other similar functions do NOT provide access. There seem to be two vectors to this vulnerability. First, access to files that should otherwise not be allowed. Second, the content from a file can be read (e.g. `/etc/hosts`, `proc/self/environ`, etc) even though that doesn't seem to be the intent of the sniff_csv function. A fix for this issue is available in commit c9b7c98aa0e1cd7363fe8bb8543a95f38e980d8a and is expected to be part of version 1.1.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00813,"percentile":0.57906,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/duckdb/duckdb/security/advisories/GHSA-w2gf-jxc9-pf2q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/duckdb/duckdb/pull/13133","tags":["x_refsource_MISC"]},{"url":"https://github.com/duckdb/duckdb/commit/c9b7c98aa0e1cd7363fe8bb8543a95f38e980d8a","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":11.58},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"duckdb","affectedVersions":[{"vendor":"duckdb","product":"duckdb","versions":["<= 1.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-07-24T18:07:30.477604Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"duckdb","vulnerableRanges":[">=1.0.0, <1.1.0","<1.1.0"],"patched":["1.1.0"],"from":["GHSA-w2gf-jxc9-pf2q","PYSEC-2024-203"],"provenance":"source"}],"summary":{"text":"DuckDB's sniff_csv function, a component of the DuckDB SQL database management system, can read files from the filesystem even when enable_external_access is set to false, which is supposed to block such access. An attacker who can submit SQL queries to a DuckDB instance in the affected versions can read arbitrary local file contents, such as /etc/hosts or /proc/self/environ, without authentication, user interaction, or any non-default configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:18Z"},"euvd":{"id":"EUVD-2024-0052","exploited":false,"provenance":"source"}}