Skip to content

pgAdmin 4

pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment

CVE-2025-2945Published 3 Apr 2025, 12:23 UTC

Real-world risk

6.0/ 10Medium

Schedule in the normal cycle

PreliminaryFrom the CVSS vector only · confidence low

CVSS

9.9

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from PostgreSQL)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
pgAdmin 4Common< 9.29.2

What to do

Update to a fixed version: 9.2.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T4: Weaponized (× 1.00)

A Metasploit module, a Nuclei template, or a verified Exploit-DB entry

  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Metasploit module (link)

EPSS 56.3% chance of exploitation in 30 days (percentile 99), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.600
  2. Threat T4: Weaponized1.000
  3. 10 × impact 1 × prerequisites 0.6 × threat 16.000
  4. Rounded to one decimal between 0.1 and 106.0

How the score works

Exploitation and evidence timeline

  1. 3 Apr 2025 Published
  2. 3 Dec 2026 Public proof of concept on GitHub first seen
  3. 3 Dec 2026 Public proof of concept on GitHub first seen
  4. 3 Dec 2026 Public proof of concept on GitHub first seen
  5. 3 Dec 2026 Metasploit module first seen
  6. 3 Dec 2026 Risk 6.0 (cvss fallback)

Weakness

CWE-94

References

Get alerts for pgAdmin 4

Free email or text alerts when a vulnerability in pgAdmin 4 reaches risk 8 or higher. Nothing else.