CVE-2025-2945: pgAdmin 4 Remote Code Execution Vulnerability
Summary
CVE-2025-2945: pgAdmin 4 Vulnerable to Remote Code Execution. Affects pgadmin4 versions < 9.2. Fixed in 9.2. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
pgAdmin 4 is a popular open-source administration and development platform for PostgreSQL, providing a web-based interface for database management. It offers features such as a query tool, cloud deployment options, and a user-friendly interface for database administrators. However, certain components of pgAdmin 4 are vulnerable to security issues, particularly in versions prior to 9.2, which can lead to severe security risks.
Vulnerability Detail
The vulnerability in pgAdmin 4 arises from improper handling of user input in two specific POST endpoints: '/sqleditor/query_tool/download' and '/cloud/deploy'. The parameters 'query_commited' and 'high_availability' are passed unsafely to the Python eval() function, allowing an attacker to execute arbitrary code on the server. This can lead to unauthorized access, data manipulation, and potential system compromise, making it critical for users to address this issue promptly.
How To Fix
Latest published version: 9.18.0 as of 22 Oct 2026
pip install --upgrade "pgadmin4==9.18.0"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
9.2
This is the first release that contains the fix.
pip install --upgrade "pgadmin4==9.2"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users are advised to restrict access to the vulnerable endpoints or implement input validation to sanitize user inputs before processing them. However, this is not a permanent solution, and updating to the patched version is strongly recommended.
Conclusion
The pgAdmin 4 vulnerability (CVE-2025-2945) poses a significant risk due to its potential for remote code execution. Users are strongly encouraged to update to version 9.2 or later to safeguard their systems. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for pgadmin4 →
FAQ
The CVSS score of this vulnerability is 9.9, indicating a critical level of risk.
pgAdmin 4 versions prior to 9.2 are affected by this vulnerability.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Exploitation of this vulnerability can lead to remote code execution, allowing attackers to gain unauthorized access and control over the server.
While the best course of action is to update to the patched version, you can mitigate risks by restricting access to the vulnerable endpoints and implementing input validation.
References
Related vulnerabilities
Recent vulnerabilities recorded for pgadmin4.