CVE-2025-2945

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

Critical · published April 3, 2025

Patch now

High probability of exploitation

CVSS calls it critical at 9.9. It sits in the 99.1th percentile for exploit probability.

CVSS v3.1
9.9
EPSS
56%
Percentile
99.1
In the wild
Unconfirmed
What it is

🚨 An unexpected twist in pgAdmin 4 allows remote code execution through two vulnerable endpoints! 🔥 Think of this as a chef in a restaurant who blindly follows any recipe written on a napkin—if a mischievous diner slips a poison recipe in, the chef unwittingly serves it up! An attacker could execute arbitrary code on your server, potentially gaining control and wreaking havoc—imagine a hacker infiltrating your kitchen and changing the menu to something catastrophic! The consequences could be absolutely devastating, impacting your data integrity and security.

Put simply

Think of this as a chef in a restaurant who blindly follows any recipe written on a napkin—if a mischievous diner slips a poison recipe in, the chef unwittingly serves it up! This vulnerability arises because the parameters 'query_commited' and 'high_availability' are unsafely handled, allowing an attacker to inject malicious code via the Python eval() function, which evaluates untrusted input.

What to do

An attacker could execute arbitrary code on your server, potentially gaining control and wreaking havoc—imagine a hacker infiltrating your kitchen and changing the menu to something catastrophic! The consequences could be absolutely devastating, impacting your data integrity and security. Upgrade pgAdmin 4 to version 9.2 or later immediately to patch this vulnerability. Additionally, review your web application security practices to ensure user inputs are properly sanitized and validated. 🛡️ This is fixable! With a quick update, you'll secure your database and keep your code safe. You've got this! 💪

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.56300 · 99.1th percentile
Published
2025-04-03T12:23Z
EPSS history
Timeline
  • 03 APR 12:23Z
    pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment
    cvelistv5