{"id":"CVE-2023-5002","summary":"Pgadmin4: remote code execution by an authenticated user","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.6 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.","aliases":["GHSA-ghp8-52vx-77j4","PYSEC-2026-1774"],"modified":"2026-08-12T03:51:38.957112551Z","published":"2023-09-22T13:31:43.124Z","related":["openSUSE-SU-2024:13379-1"],"database_specific":{"cna_assigner":"fedora","cwe_ids":["CWE-78"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5002.json"},"references":[{"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":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5002.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5002"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2239164"},{"type":"REPORT","url":"https://github.com/pgadmin-org/pgadmin4/issues/6763"},{"type":"PACKAGE","url":"https://github.com/pgadmin-org/pgadmin4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pgadmin-org/pgadmin4","events":[{"introduced":"0"},{"fixed":"3b616b2fb1cf0dc31933aec751aea8ec266e5bcc"}],"database_specific":{"cpe":"cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*","extracted_events":[{"introduced":"0"},{"fixed":"7.7"}],"source":"CPE_RANGE"}}],"versions":["REL-7_6","REL-7_5","REL-7_4","REL-7_3","REL-7_2","REL-7_1","REL-7_0","REL-6_21","REL-6_20","REL-6_19","REL-6_18","REL-6_17","REL-6_16","REL-6_15","REL-6_14","REL-6_13","REL-6_12","REL-6_11","REL-6_10","REL-6_9","REL-6_8","REL-6_7","REL-6_6","REL-6_5","REL-6_4","REL-6_3","REL-6_2","REL-6_1","REL-6_0","REL-5_7","REL-5_6","REL-5_5","REL-5_4","REL-5_3","REL-5_2","REL-5_1","REL-5_0","REL-4_30","REL-4_29","REL-4_28","REL-4_27","REL-4_26","REL-4_25","REL-4_24","REL-4_23","REL-4_22","REL-4_21","REL-4_20","REL-4_19","REL-4_18","REL-4_17","REL-4_16","REL-4_15","REL-4_14","REL-4_13","REL-4_12","REL-4_11","REL-4_10","REL-4_9","REL-4_8","REL-4_7","REL-4_6","REL-4_5","REL-4_4","REL-4_3","REL-4_2","REL-4_1","REL-4_0","REL-3_6","REL-3_5","REL-3_4","REL-3_3","REL-3_2","REL-3_1","REL-3_0","REL-2_1","REL-2_0","REL-2_0-RC2","REL-2_0-RC1","REL-1_6","REL-1_5","REL-1_4","REL-1_3","REL-1_2","REL-1_1","REL-1_0","REL-1_0-RC1","REL-1_0-BETA4","REL-1_0-BETA3","REL-1_0-BETA2","REL-1_0-BETA1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-5002.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H"}]}