Skip to main content

WhoDB EUVDEUVD-2026-137488

| CVE-2026-138032 MEDIUM
Incorrect Authorization (CWE-863)
2026-11-27 VulnCheck GHSA-rv9x-jh6w-58xh
6.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain MCP client access or agent prompt injection
  2. Delivery
    Invoke whodb_query with file-op SQL (lo_export / INTO OUTFILE)
  3. Exploit
    Keyword classifier misses INTO/OUTFILE/DUMPFILE
  4. Execution
    Statement bypasses confirmation and read-only gates
  5. Persist
    Database process writes/reads files on host
  6. Impact
    Disclose host credentials or plant attacker files

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of: (1) WhoDB's MCP whodb_query tool reachable and enabled; (2) an attacker path to invoke it - access to a connected MCP client or malicious instructions accepted by an agent using the tool; and (3) critically, the database account WhoDB is configured with must already hold server-side file privileges - PostgreSQL superuser, pg_read_server_files, or explicitly delegated function privileges for lo_export/pg_read_file, or MySQL FILE privilege with secure_file_priv not restricting the target path. Given those, file-op statements execute without confirmation in the default mode and are not blocked by --read-only. Limiting factors that reduce realistic risk: ordinary PostgreSQL/MySQL accounts lacking file privileges are denied by the database engine itself (this does not bypass database authorization or OS permissions, only WhoDB's confirmation/read-only policy), and impact is bounded to paths the database process can access. Note the --security=strict and --safe-mode options are NOT complete mitigations: the substring check for 'INTO OUTFILE' is bypassable by inserting a newline between INTO and OUTFILE, which was confirmed to create a file.

Impact

This is a medium-severity authorization bypass (CVSS 4.0 base 6.0) whose real-world priority is moderate, not critical, because several non-trivial preconditions gate it. The input CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:N) signals a network-reachable issue that nonetheless requires elevated attack complexity (AC:H), a specific attack requirement (AT:P), and some privilege (PR:L) - consistent with the advisory, which confirms exploitation only works when the configured database account already holds server-file privileges (PostgreSQL superuser/pg_read_server_files/delegated function grants, or MySQL FILE with a permissive secure_file_priv). No EPSS score was provided and the CVE is not on CISA KEV, so there is no confirmed active exploitation; the vuln.today decision label is 'this_month' (not act_now/emergency), supporting scheduled rather than emergency remediation. No public exploit reference was supplied, so this is best described as no public exploit identified at time of analysis, though VulnCheck/GHSA researchers reproduced the behavior against PostgreSQL 16.13 and MySQL 8.4.10 - reproduction by the finder is distinct from weaponized public exploit code. Two data conflicts must be flagged: (1) the input CVSS 4.0 vector sets VC:N (no confidentiality impact), but the GHSA advisory explicitly confirms server-side file reads via pg_read_file and LOAD_FILE that can disclose host configuration and credentials, so confidentiality impact is understated - verify with vendor; (2) the CVE record states the issue is fixed in 0.132.0, while the GHSA advisory and Go package metadata list the fix in 0.134.0 and the advisory text says no patched release was available at publication, yet the multi-source feed reports 'Patch: Available' - the exact fixed version is not internally consistent and should be reconciled against the vendor release notes before relying on an upgrade target.

Exploit ScenarioDerived

An actor with access to a connected MCP client - or who achieves prompt injection into an AI agent that uses WhoDB's MCP tooling - submits a read-shaped but file-writing statement (PostgreSQL lo_export or MySQL SELECT ... INTO OUTFILE/DUMPFILE) through the whodb_query tool. Because the sqlguard keyword classifier omits INTO, OUTFILE and DUMPFILE, the statement is treated as non-mutating and executes without the operator's confirmation and even under --read-only, writing files on the database host with the configured DB account's OS permissions. Exploitation only succeeds where that account holds server-file privileges; researchers reproduced it on PostgreSQL 16.13 and MySQL 8.4.10, but no public exploit code was identified and the prompt-injection delivery path was described as plausible but not independently demonstrated.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

WhoDB releases 0.88.0 through 0.131.0 allow server-side file creation through the MCP whodb_query tool without any approval prompt and without being stopped by --read-only mode, because the sqlguard keyword classifier never looks for INTO, OUTFILE or DUMPFILE. A caller with a path to the tool - a connected MCP client, or an agent steered by prompt-injected instructions - can issue PostgreSQL lo_export or MySQL SELECT ... INTO OUTFILE/DUMPFILE statements to write files on the database host and create tables, and read-shaped file functions such as pg_read_file and LOAD_FILE were also confirmed to return server content. The bypass only defeats WhoDB's confirmation and read-only policy, not database authorization: the configured PostgreSQL or MySQL account must already hold superuser, pg_read_server_files or MySQL FILE privileges, which keeps realistic severity at medium (CVSS 4.0 base 6.0; our assessed CVSS 3.1 vector is AV:N/AC:H/PR:L/UI:N/C:L/I:H/A:N), and no public exploit code was identified at time of analysis.

RemediationAI

Upgrade WhoDB past the vulnerable range: the CVE references the 0.132.0 release tag (https://github.com/clidey/whodb/releases/tag/0.132.0) as the fixed build, while the advisory's Go package metadata lists fixed-in 0.134.0 - verify which tag your distribution actually ships and prefer 0.134.0 or later, since the advisory text itself noted no patched release at the time it was published. The fix is upstream commit 9de47fb365dda639aded842ec332cdc399b9939b, which swaps the keyword classifier for a fail-closed read grammar with connector-level read-only enforcement. If upgrading immediately is not possible, disable the MCP whodb_query tool for any workflow that is not fully trusted, and reconfigure the WhoDB connection to a dedicated least-privilege database account - no PostgreSQL superuser or pg_read_server_files grant, no delegated lo_export/pg_read_file rights, and no MySQL FILE privilege, with secure_file_priv set to constrain paths where possible. Treat --read-only, --safe-mode and --security=strict as incomplete on affected releases: the strict-mode substring check for 'INTO OUTFILE' is defeated by inserting a newline between the two words. Detection should focus on MCP query logs containing lo_export, pg_read_file, LOAD_FILE, INTO OUTFILE or INTO DUMPFILE, and on unexpected files appearing in paths writable by the database process. Priority is this-month rather than emergency: exploitation requires a reachable MCP tool plus a database account that already carries server-file privileges, and no public exploit code was identified at time of analysis.

Affected VersionsENISA

whodb 0.88.0 <0.132.0

Affected Packages

euvd whodb fix: 0.132.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

WhoDB is a database client with a Model Context Protocol (MCP) server that exposes a whodb_query tool so AI assistants can run SQL. Before executing a query, the tool passes the SQL through sqlguard (core/src/sqlguard/classify.go) and the MCP validation layer (cli/pkg/mcp/validation.go, tools.go), which decide whether a statement is mutating and therefore needs user confirmation or must be rejected in read-only mode. That decision is built on a bounded deny-list of mutating keywords, a design that fails open: statements that are shaped like reads but carry write side effects - PostgreSQL lo_export and pg_read_file, MySQL LOAD_FILE, SELECT ... INTO OUTFILE and SELECT ... INTO DUMPFILE - contain none of the listed keywords and are classified as non-mutating. The root cause is CWE-863 (incorrect authorization): the policy gate is a keyword/substring heuristic rather than a fail-closed grammar, so anything the classifier does not recognise is treated as safe. The same weakness makes the documented hardening flags unreliable - separating INTO and OUTFILE with a newline slips past the strict mode's 'INTO OUTFILE' substring check and was confirmed to create a file. The vendor's in-development fix replaces the allow/deny lists with a fail-closed, bounded read grammar where unrecognised syntax, non-aggregate routine calls, SELECT INTO, OUTFILE/DUMPFILE and other dialect extensions require confirmation in default mode and are rejected in read-only mode, backed by connector-level read-only enforcement that fails closed for unsupported connectors (upstream commit 9de47fb365dda639aded842ec332cdc399b9939b).

Know when Whodb gets its next vulnerability

  • 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

Vendor (VulnCheck) PRIMARY 6.0 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

Network-reachable MCP call but exploitation demands a privileged DB account with server-file rights (AC:H, PR:L); file writes give I:H and confirmed server-file reads give C:L, with no availability impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

WhoDB from 0.88.0 before 0.132.0 contains an access control bypass in the MCP whodb_query tool, letting callers run file-writing statements without approval because the sqlguard keyword classifier omits INTO, OUTFILE and DUMPFILE. MCP clients or prompt-injected models can execute PostgreSQL lo_export or MySQL SELECT INTO OUTFILE to create files on the database host and create tables, bypassing confirmation and read-only modes.

Threat Intelligence Overview

EPSS Score
0.5%
Top 68% exploitable
Prevalence
Low
niche open-source database admin tool, limited production enterprise footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy