Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112005 Overview
CVE-2026-112005 is a path traversal vulnerability [CWE-22] in WhoDB versions 0.104.0 through 0.134.0. The flaw lets remote attackers read and write arbitrary files on the host by executing DuckDB filesystem functions through the query editor. An attacker can log in to a DuckDB file without credentials and abuse read_text, read_blob, COPY ... TO, or ATTACH to exfiltrate session.key and stored database credentials or overwrite files on disk. The issue is fixed in WhoDB 0.135.0.
Critical Impact
Unauthenticated remote attackers can read and write arbitrary files on the WhoDB host, enabling theft of session keys, stored credentials, and persistent compromise of the application.
Affected Products
- WhoDB 0.104.0 through 0.134.0
- WhoDB DuckDB plugin (core/src/plugins/duckdb)
- Fixed in WhoDB 0.135.0
Discovery Timeline
- 2026-10-18 - CVE-2026-112005 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-112005
Vulnerability Analysis
WhoDB exposes a web-based query editor that forwards SQL to its database plugins. The DuckDB plugin establishes a connection against a user-supplied database file without requiring credentials. Once connected, the editor passes queries directly to DuckDB without filtering filesystem-level functions.
DuckDB ships with native functions that operate on arbitrary paths, including read_text, read_blob, COPY ... TO, and ATTACH. Because WhoDB executes these calls under the identity of the WhoDB process, any file readable or writable by that process is reachable through the query interface. Attackers abuse this to steal session.key, extract stored database credentials from the WhoDB configuration, and overwrite files on disk.
Root Cause
The DuckDB plugin in core/src/plugins/duckdb/db.go and core/src/plugins/duckdb/duckdb.go did not restrict the file paths or DuckDB functions reachable through the query editor. The plugin also did not require authentication to attach to a DuckDB file. Together, these flaws allow traversal and file I/O outside any intended scope.
Attack Vector
The attack is reachable over the network against the WhoDB interface. An attacker connects to a DuckDB datasource, then issues queries such as SELECT read_text('/etc/passwd') or COPY (SELECT 'payload') TO '/path/to/overwrite' to read or overwrite host files. ATTACH can be used to open additional databases on disk and pivot further.
// Patched import block in core/src/plugins/duckdb/db.go
import (
"errors"
"fmt"
"os"
"path/filepath"
"strings"
)
Source: GitHub Commit 80111c9 — the patch introduces path validation and filtering logic in the DuckDB plugin to block filesystem access outside the permitted scope.
Detection Methods for CVE-2026-112005
Indicators of Compromise
- Query editor logs containing DuckDB filesystem functions such as read_text, read_blob, COPY ... TO, or ATTACH against unexpected paths.
- Unauthenticated or anonymous sessions opening DuckDB files from directories outside the configured data location.
- Unexpected modifications to WhoDB configuration files, session.key, or stored credential files on the host.
- Outbound transfers of sensitive host files (for example /etc/passwd, .env, SSH keys) correlated with WhoDB request timestamps.
Detection Strategies
- Inspect application logs for SQL statements referencing DuckDB filesystem functions and alert on any match.
- Monitor the WhoDB process for file reads and writes outside its designated working directory using endpoint telemetry.
- Hash and baseline sensitive files such as session.key and WhoDB configuration, and alert on modification.
Monitoring Recommendations
- Forward WhoDB request logs and host process telemetry to a centralized SIEM for correlation.
- Alert on anonymous or credential-less connections to DuckDB datasources through the WhoDB UI.
- Track network egress from the WhoDB host for anomalous data transfers following query editor activity.
How to Mitigate CVE-2026-112005
Immediate Actions Required
- Upgrade WhoDB to version 0.135.0 or later, which contains the official fix.
- Rotate session.key and all database credentials stored or accessible to WhoDB, assuming prior exposure.
- Restrict network access to the WhoDB interface to trusted administrators only until patched.
- Audit the host filesystem for unauthorized modifications and review query editor logs for abuse.
Patch Information
The fix is included in the WhoDB 0.135.0 release. The code changes are documented in the upstream commit 80111c9 and in the GitHub Security Advisory GHSA-x3h5-pr45-fx4r. Additional context is available in the VulnCheck advisory.
Workarounds
- Disable the DuckDB plugin or block anonymous DuckDB connections until the upgrade is applied.
- Run WhoDB as an unprivileged user inside a container with a read-only root filesystem and a minimal mounted data volume.
- Place WhoDB behind an authenticated reverse proxy and restrict access with network ACLs.
# Example container hardening while upgrading to 0.135.0
docker run --rm \
--read-only \
--user 1000:1000 \
--tmpfs /tmp \
-v /srv/whodb/data:/data:ro \
-p 127.0.0.1:8080:8080 \
clidey/whodb:0.135.0
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

