Home / Pgadmin / Pgadmin 4 / CVE-2023-5002
CVE-2023-5002: is it exploited, and which versions of Pgadmin 4 are affected and fixed?
CVE-2023-5002 is an OS command injection vulnerability in Pgadmin 4. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: pgadmin4 before 7.7 (GitHub advisory GHSA-ghp8-52vx-77j4). Fixed in 7.7 (GitHub advisory GHSA-ghp8-52vx-77j4). Severity: Medium (6.0, CVSS 3.1, from fedora).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:35 UTC.
What is CVE-2023-5002?
Pgadmin4: remote code execution by an authenticated user
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.
From the CVE record by fedora, last updated August 2, 2024, 07:44 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pgadmin4 | not stated |
As the CVE record by fedora states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | pgadmin4 | < 7.7 | 7.7 | GHSA-ghp8-52vx-77j4 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 17, 2025. Summary: pgAdmin failed to properly control the server code.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pgadmin | pgadmin 4 | before 7.7 | application |
| fedoraproject | fedora | 37 | operating system |
| fedoraproject | fedora | 38 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 06:47 UTC.
How severe is CVE-2023-5002?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H | fedora |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-5002 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, May 14, 2024)
- EPSS
- 1.78% probability of exploitation activity in the next 30 days, percentile 79.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- RHBZ#2239164 issue-tracking, x_refsource_REDHAT
- https://github.com/pgadmin-org/pgadmin4/issues/6763
- https://lists.fedoraproject.org/archives/list/[email protected]/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/
When was it published, and where is the official record?
- Reserved
- September 15, 2023
- Published
- September 22, 2023, 13:31 UTC
- CVE record updated
- August 2, 2024, 07:44 UTC by fedora
- NVD
- Modified, last modified June 17, 2026, 06:47 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:35 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2023-5002
Is CVE-2023-5002 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 1.78% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Pgadmin 4 are affected by CVE-2023-5002?
pgadmin4 before 7.7, per the GitHub advisory GHSA-ghp8-52vx-77j4. The tables above give every range the sources list.
Which version fixes CVE-2023-5002?
7.7, per the GitHub advisory GHSA-ghp8-52vx-77j4. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-5002?
Medium (6.0, CVSS 3.1, from fedora). The severity table above shows each score with its source.
Where is the official record of CVE-2023-5002?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.