CVE-2025-12762
Python vulnerability analysis and mitigation

Overview

A critical Remote Code Execution (RCE) vulnerability, identified as CVE-2025-12762, affects pgAdmin versions up to 9.9 when running in server mode. The vulnerability was discovered and disclosed on November 13, 2025, impacting the popular open-source administration and development platform for PostgreSQL databases. This security flaw specifically occurs during restore operations involving PLAIN-format PostgreSQL dump files (Miggo, SecurityOnline).

Technical details

The vulnerability has been assigned a critical CVSS v3.1 score of 9.1 with the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L. The core issue lies in the use_sql_utility function located in web/pgadmin/tools/restore/init.py, which fails to properly inspect the content of dump files for psql meta-commands. The vulnerability is classified as CWE-94, related to improper control of code generation (Miggo, CyberSecurityNews).

Impact

The vulnerability allows attackers to inject and execute arbitrary commands on the server hosting pgAdmin, posing a critical risk to the integrity and security of the database management system and underlying data. With only network access and low privileges required, an authenticated user could potentially compromise entire database infrastructures (SecurityOnline, CyberSecurityNews).

Mitigation and workarounds

The vulnerability has been patched in pgAdmin version 9.10. Organizations are strongly advised to upgrade immediately to this latest secure release. If immediate upgrading is not possible, administrators should consider disabling PLAIN-format restores and implementing strict access controls (SecurityOnline).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-5882-5rx9-xgxpCRITICAL10
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23949HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 20, 2026
GHSA-vx9w-5cx4-9796HIGH8.6
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23535HIGH8
  • PythonPython
  • wlc
NoYesJan 16, 2026
CVE-2026-23490HIGH7.5
  • PythonPython
  • fence-agents-intelmodular
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management