CVE-2025-59333: MCP Database Server Read-Only Mode Bypass
- Vendor
- Executeautomation
CVE-2025-59333 is an improper access control vulnerability in ExecuteAutomation MCP Database Server versions 1.1.0 and earlier distributed through npm. The read_query handler implements read-only mode by permitting queries whose trimmed, lowercased text begins with SELECT. This prefix check is insufficient for PostgreSQL, where SELECT statements can invoke stored functions and administrative functions with side effects. An attacker can therefore submit apparently read-only queries that perform actions otherwise expected to be blocked by the server's read-only control. Other distribution channels are not affected.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An authenticated attacker able to issue queries through the MCP server can invoke database functions permitted to the MCP server's database account. Depending on assigned database privileges and available functions, this can enable unauthorized data access, invocation of data-changing stored functions, and denial of service by terminating active database backends or queries. The reported CVSS v3.1 score is 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H).
Mitigation
If you can’t patch tonight, do this now.
Until remediation is deployed, disable or restrict MCP Database Server access, limit it to trusted authenticated users and networks, and use a dedicated database account with only the minimum SELECT permissions required. Revoke access to administrative and side-effecting functions, avoid granting broad roles, restrict accessible schemas and tables, and monitor query activity for function invocation and database-session termination attempts.
Remediation
Patch, then assume compromise.
Replace prefix-based SQL validation with enforceable database-side authorization controls. Use a dedicated least-privilege database role that lacks permissions for administrative functions, data modification, and access to non-required objects. Restrict the MCP service to explicitly allowlisted read operations and tables, enforce single-statement requests, and upgrade to a vendor release that corrects the issue when available. This applies to the affected npm distribution.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-59333 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2025-59333 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-59333?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2025-59333.
- Is there a patch for CVE-2025-59333?
- Replace prefix-based SQL validation with enforceable database-side authorization controls. Use a dedicated least-privilege database role that lacks permissions for administrative functions, data modification, and access to non-required objects.
- What products are affected by CVE-2025-59333?
- Executeautomation Mcp Database Server.
- How severe is CVE-2025-59333?
- CVE-2025-59333 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 0.40% (35th percentile) as of Oct 16, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.