{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-5002","id":"CVE-2023-5002","title":"Pgadmin4: remote code execution by an authenticated user","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.","descriptionLong":"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.","published":"2023-09-22T13:31:43.124Z","updated":"2026-10-28T02:30:33.603628971Z","reserved":"2023-09-15T16:22:28.547Z","status":"Modified","rejected":false,"assigner":"fedora","metric":{"version":"3.1","score":6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","rating":"medium","source":"fedora"},"metrics":[{"version":"3.1","score":6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","rating":"medium","source":"fedora"},{"version":"3.1","score":6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","rating":"medium","source":"puiterwijk.org"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H","rating":"medium","source":"GitHub"}],"rating":"medium","products":["pgadmin4"],"affectedProducts":[{"vendor":"","product":"pgadmin4","defaultStatus":null,"versions":[{"status":"unaffected","version":"7.7","lessThan":"*","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pgadmin4","purl":"pkg:pypi/pgadmin4","ranges":["<7.7"],"fixed":["7.7"],"advisory":"GHSA-ghp8-52vx-77j4"}],"cwes":["CWE-78"],"aliases":["GHSA-ghp8-52vx-77j4","PYSEC-2026-1774"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2239164","tags":["issue-tracking","x_refsource_REDHAT","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/pgadmin-org/pgadmin4/issues/6763","tags":["x_transferred","Issue Tracking","Patch","report","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW/","tags":["x_transferred","Mailing List","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/","tags":["x_transferred","Mailing List","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5002.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5002","tags":["advisory"]},{"url":"https://github.com/pgadmin-org/pgadmin4","tags":["package"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/35f05e49b3632a0a674b9b36535a7fe2d93dd0c2","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3","tags":["web"]},{"url":"https://pypi.org/project/pgadmin4","tags":["package"]},{"url":"https://github.com/advisories/GHSA-ghp8-52vx-77j4","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01784,"epssPercentile":0.7874,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-5002","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5002","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-5002","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-ghp8-52vx-77j4","ok":true,"note":"GHSA-ghp8-52vx-77j4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-5002","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}