Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilitywidely-deployed-product-advisoryopen-source-dependency-vulnerabilityproof-of-concept-release

Critical Remote Code Execution Vulnerability in pgAdmin 4 (CVE-2025-13780) Enables Server Takeover

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Dec 15, 2025

Critical Remote Code Execution Vulnerability in pgAdmin 4 (CVE-2025-13780) Enables Server Takeover

A critical remote code execution vulnerability, tracked as CVE-2025-13780, was discovered in pgAdmin 4, the widely used open-source PostgreSQL database management tool. The flaw allows attackers to bypass security filters in the plain-text restore feature by inserting unexpected whitespace characters, enabling the execution of arbitrary shell commands on the host server through maliciously crafted SQL dump files. The vulnerability affects pgAdmin 4 versions prior to 9.11 and was found to stem from an inadequate regular expression filter that failed to block dangerous commands effectively.

Security researchers at EndorLabs identified the issue and reported that attackers could exploit this weakness to gain unauthorized access and potentially take over affected servers. In response, the pgAdmin development team released version 9.11, which implements the \restrict command to disable hazardous operations during the restore process, fundamentally improving the security model by enforcing restrictions at the execution level rather than relying solely on input filtering. Users are strongly advised to update to the latest version to mitigate the risk of exploitation.

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.

3 events · Dec 15, 2025
  1. Dec 15, 202511mo ago

    Public disclosure of CVE-2025-13780 highlights fix bypass risk

    Security reports publicly disclosed CVE-2025-13780 as a critical pgAdmin vulnerability that bypassed an earlier fix and enabled server takeover through malicious database restore input. The disclosure emphasized the severity of the flaw, including a reported CVSS score of 9.9.

  2. Dec 15, 202511mo ago

    pgAdmin releases version 9.11 to fix CVE-2025-13780

    Following the discovery, the pgAdmin team released version 9.11 to mitigate the vulnerability by using the \restrict command at the execution layer instead of relying on regex-based input filtering. Administrators were advised to upgrade because older versions remained exposed.

  3. Dec 15, 202511mo ago

    EndorLabs researchers discover pgAdmin RCE CVE-2025-13780

    Researchers identified a critical remote code execution flaw in pgAdmin 4 that let attackers bypass prior security filters in the plain-text restore feature using crafted SQL dump files. The issue could lead to arbitrary shell command execution and full server compromise.

Linked entities

Related entities

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

Open in app →
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.