CVE-2023-5002
highpriority · track · 36EPSS 0.018 · 78 %ileDEEURUUSEPSS · scored 2026-10-27
A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. Versions of pgAdmin prior to 7.6 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (7)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-2416pgAdmin: Schwachstelle ermöglicht Ausführung von KommandosDeutsch2023-09-20csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in pgAdmin ausnutzen, um beliebige Kommandos auszuführen.
- GHSA-ghp8-52vx-77j4pgAdmin failed to properly control the server code 2023-09-22ghsa · osvUS
A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. Versions of pgAdmin prior to 7.7 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.
- PYSEC-2026-1774pgAdmin failed to properly control the server code 2026-07-07vendor · osvUS
A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. Versions of pgAdmin prior to 7.7 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- https://bugzilla.redhat.com/show_bug.cgi?id=2239164cnnvd
- https://cxsecurity.com/cveshow/CVE-2023-5002/cnnvd
- https://github.com/pgadmin-org/pgadmin4/issues/6763cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/cnnvd
- https://vigilance.fr/vulnerability/pgAdmin-code-execution-via-API-42477cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2239164enisa_euvd
- https://github.com/pgadmin-org/pgadmin4/issues/6763enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan