{"id":"PYSEC-2026-1774","summary":"pgAdmin failed to properly control the server code ","details":"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.","aliases":["CVE-2023-5002","GHSA-ghp8-52vx-77j4"],"modified":"2026-07-07T17:48:01.050785397Z","published":"2026-07-07T11:45:24.753487Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5002"},{"type":"WEB","url":"https://github.com/pgadmin-org/pgadmin4/issues/6763"},{"type":"WEB","url":"https://github.com/pgadmin-org/pgadmin4/commit/35f05e49b3632a0a674b9b36535a7fe2d93dd0c2"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2239164"},{"type":"PACKAGE","url":"https://github.com/pgadmin-org/pgadmin4"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3"},{"type":"PACKAGE","url":"https://pypi.org/project/pgadmin4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-ghp8-52vx-77j4"}],"affected":[{"package":{"name":"pgadmin4","ecosystem":"PyPI","purl":"pkg:pypi/pgadmin4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.7"}]}],"versions":["4.20","4.22","4.23","4.24","4.25","4.26","4.27","4.28","4.29","4.30","5.0","5.1","5.2","5.3","5.4","5.5","5.6","5.7","6.10","6.11","6.12","6.13","6.14","6.15","6.16","6.17","6.18","6.19","6.2","6.20","6.21","6.3","6.4","6.5","6.6","6.7","6.8","6.9","7.0","7.1","7.2","7.3","7.4","7.5","7.6"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/pgadmin4/PYSEC-2026-1774.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H"}]}