{"id":"CVE-2023-5002","aliases":["GHSA-ghp8-52vx-77j4","PYSEC-2026-1774"],"title":"pgAdmin failed to properly control the server code ","summary":"pgAdmin failed to properly control the server code ","severity":"medium","cvss":6,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","vendor":"pgadmin4","product":"pgadmin4","ecosystem":"pip","affected":["pgadmin4 < 7.7"],"patched":["pgadmin4 7.7"],"published":"2023-09-22","updated":"2026-07-07","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-ghp8-52vx-77j4","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5002"},{"url":"https://github.com/pgadmin-org/pgadmin4/issues/6763"},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/35f05e49b3632a0a674b9b36535a7fe2d93dd0c2"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2239164"},{"url":"https://github.com/pgadmin-org/pgadmin4"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3"}],"tags":["osv","pip"],"epss":0.01483,"epssPercentile":0.72402,"ingestedAt":"2026-07-08T18:25:49.721Z","slug":"CVE-2023-5002","body":"## Overview\n\nA 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.\n\n## Affected packages\n\n- `pgadmin4 < 7.7`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `pgadmin4 7.7`","depth":"sunlit","depthScore":33,"depthScoreParts":{"impact":33,"likelihood":0.3,"exploitation":0,"ransomware":0},"changes":[]}