{"id":"CVE-2023-5002","aliases":["CVE-2023-5002","GHSA-ghp8-52vx-77j4","PYSEC-2026-1774"],"related":[],"kind":"vulnerability","state":"published","title":"Pgadmin4: remote code execution by an authenticated user","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró una falla en pgAdmin. Este problema ocurre cuando la API HTTP del servidor pgAdmin valida la ruta que un usuario selecciona a las utilidades externas de PostgreSQL, como pg_dump y pg_restore. Las versiones de pgAdmin anteriores a la 7.6 no pudieron controlar adecuadamente el código del servidor ejecutado en esta API, lo que permitió a un usuario autenticado ejecutar comandos arbitrarios en el servidor.","source":"nvd"}],"published":"2023-09-22T13:31:43.124Z","modified":"2026-07-07T17:57:34.697Z","severity":{"scorer":"fedora","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"fedora","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","score":6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","score":6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","score":6,"rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"7.7","fixed":"*","status":"unaffected"}],"package":"pgadmin4","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"7.6","status":"affected"}],"vendor":"pgadmin","product":"pgadmin","cpe":"cpe:2.3:a:pgadmin:pgadmin:-:*:*:*:*:postgresql:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.7"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"7.7"}],"vendor":"pgadmin","product":"pgadmin_4","cpe":"cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:postgresql:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"37"},{"status":"affected","version":"38"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.7"}],"ecosystem":"PyPI","package":"pgadmin4","purl":"pkg:pypi/pgadmin4","source":"pysec"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2239164","tags":["issue-tracking","third-party-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4/issues/6763","tags":["issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW/","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5002","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/35f05e49b3632a0a674b9b36535a7fe2d93dd0c2","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pgadmin-org/pgadmin4","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pgadmin4","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-ghp8-52vx-77j4","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"fedora","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-05-14T16:28:49.140Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-5002","url":"https://www.cve.org/CVERecord?id=CVE-2023-5002","licence":"CVE Terms of Use","modified":"2024-08-02T07:44:53.739Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ghp8-52vx-77j4","url":"https://github.com/advisories/GHSA-ghp8-52vx-77j4","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:34.697Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-5002","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5002","licence":"Public domain","modified":"2026-06-17T06:47:19.070Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1774","url":"https://osv.dev/vulnerability/PYSEC-2026-1774","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:01.050Z"}],"updatedAt":"2026-11-25T22:58:28.075Z","epss":{"score":0.01784,"percentile":0.78972,"date":"2026-12-02T12:00:21.000Z"}}