Skip to main content

CVE-2025-2945 — Vulnerability in pgadmin4 — CVE Details

CRITICAL

pgAdmin 4 Vulnerable to Remote Code Execution

Published April 3, 2025Updated November 16, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (3.89%). Schedule for your next planned update.

Does your project use an affected pgadmin4 version?

Paste your requirements.txt to check it for CVE-2025-2945 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my requirements.txt

Summary

Remote Code Execution security vulnerability in pgAdmin 4 (Query Tool and Cloud Deployment modules).

The vulnerability is associated with the 2 POST endpoints; /sqleditor/query_tool/download, where the query_commited parameter and /cloud/deploy endpoint, where the high_availability parameter is unsafely passed to the Python eval() function, allowing arbitrary code execution.

This issue affects pgAdmin 4: before 9.2.

Advisory Timeline

  • First published April 3, 2025 (602 days ago).
  • Last revised November 16, 2026 — 592 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

pip
Update pgadmin4 to 9.2 or later
pip install "pgadmin4>=9.2"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: PyPI (1).

PackageFixed In
pgadmin4 PyPI · Affected: 4.20, 4.22, 4.23, 4.24 (+60 more)9.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-2945?
pgAdmin 4 Vulnerable to Remote Code Execution. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2025-2945?
CVE-2025-2945 affects pgadmin4. It has a 3.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-2945 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
3.89%
EPSS percentile: 91

This places it in the top 10% of EPSS-scored vulnerabilities — 91% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.

Also Known As

GHSA-g73c-fw68-pwx3
PYSEC-2026-451

Related CVEs

  • CVE-2025-2946
    CRITICAL

    pgAdmin 4 Vulnerable to Cross-Site Scripting (XSS) via Query Result Rendering

  • CVE-2025-13780
    CRITICAL

    pgadmin4 has a Meta-Command Filter Command Execution

  • CVE-2026-7813
    CRITICAL

    pgAdmin 4 server mode has an authorization vulnerability affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules

  • CVE-2024-2044
    CRITICAL

    pgAdmin 4 vulnerable to Unsafe Deserialization and Remote Code Execution by an Authenticated user

  • CVE-2025-12762
    CRITICAL

    pgAdmin4 vulnerable to Remote Code Execution (RCE) when running in server mode

  • CVE-2026-77359
    CRITICAL

    Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes

  • CVE-2026-7813
    CRITICAL

    pgAdmin 4 server mode has an authorization vulnerability affecting Server Groups, Servers, Shared Servers, Background Processes, and Debugger modules

  • CVE-2026-77312
    CRITICAL

    Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt