CVE-2023-5002
Python vulnerability analysis and mitigation

Overview

A critical remote code execution (RCE) vulnerability, tracked as CVE-2023-5002, was discovered in pgAdmin, affecting all versions prior to 7.7. The vulnerability exists in the pgAdmin server HTTP API that validates paths to external PostgreSQL utilities such as pg_dump and pg_restore. This issue was discovered and reported by Stefan Grönke (GitHub Issue, NVD).

Technical details

The vulnerability stems from insufficient validation in the pgAdmin server HTTP API when validating paths to external PostgreSQL utilities. The API executes these utilities to determine their PostgreSQL version, but versions prior to 7.7 failed to properly control the server code execution. The vulnerability has received a CVSS v3.1 base score of 8.8 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability allows an authenticated user to execute arbitrary commands on the pgAdmin server. The attacker can achieve this by using commands as filenames and having the path validated through the API, effectively injecting commands into the path validator (SecurityOnline, GitHub Issue).

Mitigation and workarounds

The primary mitigation is to upgrade to pgAdmin version 7.7 or later, which contains the fix for this vulnerability. For users who cannot immediately upgrade, it is recommended to implement strong security measures such as firewalls and intrusion detection systems, and to monitor the pgAdmin server environment for suspicious activity (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

CVE-2026-23949HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 20, 2026
CVE-2026-22219HIGH8.3
  • PythonPython
  • chainlit
NoYesJan 20, 2026
CVE-2026-23842HIGH7.5
  • PythonPython
  • chatterbot
NoYesJan 19, 2026
CVE-2026-23877MEDIUM5.3
  • PythonPython
  • swingmusic
NoYesJan 19, 2026
CVE-2026-23833LOW1.7
  • PythonPython
  • esphome
NoYesJan 19, 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