CVE-2024-41672
DuckDB vulnerability analysis and mitigation

Overview

DuckDB versions 1.0.0 and prior contain a vulnerability (CVE-2024-41672) where content in the filesystem is accessible for reading using sniff_csv, even when enable_external_access=false is set. The vulnerability was discovered in July 2024 and has been fixed in version 1.1.0 (GitHub Advisory).

Technical details

The vulnerability allows attackers to bypass filesystem access restrictions through the sniff_csv function, even when external access is explicitly disabled. The issue has a CVSS v3.1 Base Score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating high confidentiality impact with network accessibility (NVD).

Impact

The vulnerability presents two main impact vectors: First, it allows access to files that should be restricted when external access is disabled. Second, it enables reading content from system files (such as /etc/hosts, proc/self/environ) that shouldn't be accessible through the sniff_csv function, which is intended only to provide information about data shape (GitHub Advisory).

Exploitability

The vulnerability can be exploited by using the sniff_csv function to read system files even when enable_external_access=false is set. A proof of concept demonstrates this by accessing /proc/self/environ using the command: SELECT Columns FROM sniff_csv('/proc/self/environ') (GitHub Advisory).

Mitigation and workarounds

A temporary workaround is available by disabling the local file system using the disabled_filesystems setting: SET disabled_filesystems='LocalFileSystem'. The permanent fix has been implemented in version 1.1.0 through commit c9b7c98aa0e1cd7363fe8bb8543a95f38e980d8a (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related DuckDB vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59037HIGH8.6
  • JavaScript logoJavaScript
  • @duckdb/duckdb-wasm
NoYesSep 09, 2025
CVE-2024-41672HIGH7.5
  • DuckDB logoDuckDB
  • duckdb
NoYesJul 24, 2024
CVE-2025-64429MEDIUM6.9
  • DuckDB logoDuckDB
  • duckdb
NoYesNov 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management