Skip to main content
Mallory
← Back to News
proof-of-concept-releasewidely-deployed-product-advisoryinternet-facing-service-vulnerability

pgAdmin 4 Fixes Critical RCE and XSS Flaws in Query Tool and Data Views

Patch & Detection Intelligence · 3 sources · Updated 4mo ago · First seen Apr 22, 2025

pgAdmin 4 Fixes Critical RCE and XSS Flaws in Query Tool and Data Views

pgAdmin 4 developers released security updates for two critical vulnerabilities affecting versions earlier than 9.2, including CVE-2025-2945 and CVE-2025-2946. The most severe issue, CVE-2025-2945 (CVSS 9.9), is a remote code execution flaw in the Query Tool and Cloud Deployment components caused by unsafe use of Python eval() on unsanitized POST parameters, allowing an authenticated remote attacker to compromise confidentiality, integrity, and availability.

The second flaw, CVE-2025-2946 (CVSS 9.1), is a cross-site scripting vulnerability in the Query Tool and View/Edit Data components that can execute attacker-controlled HTML or JavaScript when query results are rendered in the result grid. Public proof-of-concept exploit code is available for the vulnerabilities, increasing exploitation risk, and users are being urged to upgrade pgAdmin 4 to version 9.2 or later immediately.

Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

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

2 events · Mar 27, 2025 – Apr 22, 2025
  1. Apr 22, 20252y ago

    pgAdmin 4 security updates released for CVE-2025-2945 and CVE-2025-2946

    CSIRT.SK reported that pgAdmin 4 developers released security updates fixing two critical vulnerabilities affecting versions older than 9.2. Users were advised to upgrade to version 9.2 or later, and the report noted that proof-of-concept exploit code was publicly available.

    Kritické zraniteľnosti v nástroji pgAdmin 4 | CSIRT.SK
  2. Mar 27, 20252y ago

    pgAdmin issues for CVE-2025-2946 and CVE-2025-2945 were published on GitHub

    Two GitHub issues documenting critical pgAdmin 4 vulnerabilities were published: CVE-2025-2946 covering an XSS flaw in the Query Tool and View/Edit Data components, and CVE-2025-2945 covering a remote code execution flaw in the Query Tool and Cloud Deployment components.

    Remote Code Executtion Vulnerability with Query Tool and Cloud Deployment (CVE-2025-2945)
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 real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
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.