Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilityai-platform-securityprivilege-escalation-method

SQL Read-Only Bypass Exposes MCP Database Servers to Data Modification

Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Sep 3, 2026

SQL Read-Only Bypass Exposes MCP Database Servers to Data Modification

Researchers identified SQL injection and improper-access-control weaknesses in Model Context Protocol (MCP) database servers that label interfaces as read-only by checking only whether submitted SQL begins with SELECT. In PostgreSQL, SELECT can call functions with side effects or administrative privileges; where multi-statement queries are allowed, attackers may also append additional commands. CVE-2025-59333 affects ExecuteAutomation's @executeautomation/database-server npm package and is rated CVSS 8.1.

An authenticated low-privilege user able to submit MCP queries could modify data through stored functions, retrieve data beyond intended scope under the service account's permissions, terminate database backends, or trigger expensive queries for denial of service. Organizations should not rely on SQL prefix filtering: enforce read-only database roles and transactions, restrict connections to allowlisted tables and functions, require single statements, use parameterized queries, and apply least-privilege permissions to MCP service accounts.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

1 event
  1. Reported Sep 21, 20251y ago

    CVE-2025-59333 identified in ExecuteAutomation MCP Database Server

    An improper-access-control vulnerability in ExecuteAutomation's MCP Database Server npm package (@executeautomation/database-server) allows queries based solely on whether they begin with SELECT. In PostgreSQL, an authenticated low-privilege attacker could invoke side-effecting functions to alter data, terminate database backends for denial of service, or access data permitted to the server's database account; the issue is rated CVSS 8.1.

    The Tale of the Vulnerable MCP Database Server
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Mcp Database Server
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.