CVE-2023-5002
HIGH 8.8CVSS 3.1pgAdmin failed to properly control the server code
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.
- Published
- 22 Sep 2023
- Last modified
- 7 Jul 2026
- Assigned by
- patrick@puiterwijk.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-ghp8-52vx-77j4PYSEC-2026-1774
- Sources
- NVDJSONOSV GHSA-ghp8-52vx-77j4JSONOSV PYSEC-2026-1774JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | patrick@puiterwijk.org (Secondary) | CVSS 3.1 | MEDIUM 6.0 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.0 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.0 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pgadmin | pgadmin_4cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:* |
< 7.7 | 7.7 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* |
= 38 | |
| OSV | PyPI | pgadmin4 | < 7.7 | 7.7 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2239164 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/pgadmin-org/pgadmin4/issues/6763 · Issue Tracking, Patch, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW/ · Mailing List, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/ · Mailing List, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-5002 · ADVISORY
- https://github.com/pgadmin-org/pgadmin4/commit/35f05e49b3632a0a674b9b36535a7fe2d93dd0c2 · WEB
- https://github.com/pgadmin-org/pgadmin4 · PACKAGE
- https://pypi.org/project/pgadmin4 · PACKAGE
- https://github.com/advisories/GHSA-ghp8-52vx-77j4 · ADVISORY
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 22 Sep 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Sep 2023)