# CVE-2023-5002: Pgadmin4: remote code execution by an authenticated user

- Severity: Medium 6.0 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.78%, higher than 78% of CVEs (2026-12-02)
- Published: 2023-09-22T13:31:43.124Z
- Modified: 2026-07-07T17:57:34.697Z
- Also known as: GHSA-ghp8-52vx-77j4, PYSEC-2026-1774
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: fedora

## Description

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.

(As written by CVE List.)

## Affected

- pgadmin4: no versions given (not affected: from 7.7 before *)
- pgadmin pgadmin: before 7.6
- pgadmin4 (PyPI): before 7.7
- pgadmin pgadmin_4: before 7.7
- fedoraproject fedora: 37; 38

## Every score

- fedora: CVSS:3.1 6.0 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H`
- GitHub: CVSS:3.1 6.0 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 6.0 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H`

## 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)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/> (mailing-list)
- <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://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3> (web)
- <https://pypi.org/project/pgadmin4> (package)
- <https://github.com/advisories/GHSA-ghp8-52vx-77j4> (advisory)

## Sources

- CVE List: [CVE-2023-5002](https://www.cve.org/CVERecord?id=CVE-2023-5002), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-ghp8-52vx-77j4](https://github.com/advisories/GHSA-ghp8-52vx-77j4), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2023-5002](https://nvd.nist.gov/vuln/detail/CVE-2023-5002), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1774](https://osv.dev/vulnerability/PYSEC-2026-1774), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-5002 · Whole record: https://cve.day/CVE-2023-5002.json · Rebuilt by cve.day 2026-11-25T22:58:28.075Z
