🛡️ JLSEC-2026-774 — duckdb-jll
Description
sniff_csv provides filesystem access even when enable_external_access is disabled in duckdb
Summary
Content in filesystem is accessible for reading using sniff_csv, even with enable_external_access=false.
Details
During a pentest, a security researcher was able to access environment variable data and other system data by using the sniff_csv function, even though we set enable_external_access to false.
PoC
```SQL
SET enable_external_access=false;
SET lock_configuration=true;
SELECT Columns FROM sniff_csv('/proc/self/environ');
```
Impact
Provides an attacker with access to filesystem even when access is expected to be disabled and other similar functions do NOT provide access.
For example select * from read_csv('/proc/self/environ') fails with a permission error.
There seems to be two vectors to this vulnerability:
1. Access to files that should otherwise not be allowed. (We expect Permission Error: Scanning CSV files is disabled through configuration and not to provide any access to the file or even acknowledge that it exists).
2. The content from a (non-csv?) 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 (my understanding is it's intending to provide information about the shape of the data, but not provide the data itself).
Workaround
It is possible to work around the issue by disabling the local file system using the disabled_filesystems setting:
```SQL
SET disabled_filesystems='LocalFileSystem';
SET lock_configuration=true;
SELECT Columns FROM sniff_csv('/proc/self/environ');
```
will result in Permission Error: File system LocalFileSystem has been disabled by configuration.
Fix
A fix has been merged into the main branch (https://github.com/duckdb/duckdb/pull/13133), and will be released with the next DuckDB release.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.
Affected software
JLSEC-2026-774 is recorded against 1 package.
- duckdb-jll
Timeline and source
Published on 20 July 2026 and last revised on 25 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
nvd.nist.gov (Web)
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| duckdb-jll | — | — |
References
Similar Threats
- Unknown JLSEC-2026-775
Free Vulnerability Check
Is your site affected by JLSEC-2026-774?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against JLSEC-2026-774 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.