Skip to main content
Mallory
← Back to News
privilege-escalation-methodai-platform-securityopen-source-dependency-vulnerabilityoperational-disruption

Simple PSQL MCP Server Read-Only Check Enables PostgreSQL Access-Control Bypass

Attack Tradecraft · 2 sources · Updated 3mo ago · First seen Sep 3, 2026

Simple PSQL MCP Server Read-Only Check Enables PostgreSQL Access-Control Bypass

A design flaw in the Python-based Simple PSQL MCP Server lets users bypass its purported read-only mode because the control accepts any input beginning with SELECT. In PostgreSQL, SELECT statements can invoke functions and query system views, allowing an attacker using sufficiently privileged database credentials to expose database activity and configuration data, terminate or disrupt backend connections, or cause denial-of-service conditions.

The maintainer acknowledged the disclosure and noted that simple-psql-mcp is an educational starter template whose README warns of SQL-injection risk. Organizations deploying it should not treat keyword filtering as an authorization boundary: restrict the PostgreSQL role to least-privilege permissions and use an explicit allowlist of permitted queries or operations, rather than granting broadly privileged credentials to the MCP service.

Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

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

1 event
  1. Reported Aug 18, 20251y ago

    Simple PSQL MCP Server access-control weakness disclosed

    A design-level weakness was reported in Simple PSQL MCP Server: its read-only check accepts queries solely when they begin with "SELECT," allowing potentially disruptive PostgreSQL functions and system views to be invoked if the configured database role has sufficient privileges. The maintainer reportedly acknowledged the issue and said the project is an educational template whose README warns about SQL-injection risks.

    How to Bypass Access Control in PostgreSQL in Simple PSQL MCP Server for SQL Injection
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
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.